BUG: snappyHexMesh: feature refinement in parallel

This commit is contained in:
mattijs 2014-07-09 14:56:51 +01:00
parent 05976b0a22
commit 590b1dd194

View file

@ -103,8 +103,12 @@ bool Foam::trackedParticle::move
scalar tEnd = (1.0 - stepFraction())*trackTime;
scalar dtMax = tEnd;
if (tEnd <= SMALL)
if (tEnd <= SMALL && onBoundary())
{
// This is a hack to handle particles reaching their endpoint
// on a processor boundary. If the endpoint is on a processor face
// it currently gets transferred backwards and forwards infinitely.
// Remove the particle
td.keepParticle = false;
}