BUG: snappyHexMesh: feature refinement in parallel
This commit is contained in:
parent
05976b0a22
commit
590b1dd194
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue