This commit is contained in:
Hrvoje Jasak 2011-02-17 20:25:22 +00:00
parent c151f51ccd
commit 89a6798667

View file

@ -38,9 +38,7 @@ Foam::scalar Foam::face::contactSphereDiameter
const pointField& meshPoints
) const
{
scalar magN = Foam::mag(n);
vector n1 = n/(magN + SMALL);
vector n1 = n/(Foam::mag(n) + SMALL);
vector n2 = normal(meshPoints);
n2 /= Foam::mag(n2) + SMALL;