ENH: foamyHexMesh: do not point motion to cross surfaces

This commit is contained in:
laurence
2013-08-30 12:18:15 +01:00
parent 067c80b0d7
commit 6f4202c08c

View File

@ -1613,6 +1613,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
// Do not allow infinite recursion // Do not allow infinite recursion
if (callCount > 7) if (callCount > 7)
{ {
displacement = vector::zero;
return; return;
} }
@ -1661,6 +1662,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
if (magSqr(pt - surfHit.hitPoint()) <= searchDistanceSqr) if (magSqr(pt - surfHit.hitPoint()) <= searchDistanceSqr)
{ {
// Cannot limit displacement, point closer than tolerance // Cannot limit displacement, point closer than tolerance
displacement = vector::zero;
return; return;
} }
} }