Skip to content
Snippets Groups Projects
Commit 446b1407 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: snappyHexMesh: feature refinement in parallel

parent 866ca15d
No related branches found
No related tags found
No related merge requests found
...@@ -103,8 +103,12 @@ bool Foam::trackedParticle::move ...@@ -103,8 +103,12 @@ bool Foam::trackedParticle::move
scalar tEnd = (1.0 - stepFraction())*trackTime; scalar tEnd = (1.0 - stepFraction())*trackTime;
scalar dtMax = tEnd; 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 // Remove the particle
td.keepParticle = false; td.keepParticle = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment