ENH: motionSmoother: stabilise edge weight calculation

This commit is contained in:
mattijs
2012-04-27 11:39:24 +01:00
parent b1d84337c7
commit 3ba9c53475

View File

@ -283,7 +283,7 @@ Foam::tmp<Foam::scalarField> Foam::motionSmoother::calcEdgeWeights
forAll(edges, edgeI)
{
wght[edgeI] = min(GREAT, 1.0/edges[edgeI].mag(points));
wght[edgeI] = 1.0/(edges[edgeI].mag(points)+SMALL);
}
return twght;
}