Cloud: Added 'td.switchProcessor' check to processor transfer logic

Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2315
This commit is contained in:
Henry Weller
2016-11-05 21:16:22 +00:00
parent 03014998f5
commit 379c16d410

View File

@ -258,7 +258,12 @@ void Foam::Cloud<ParticleType>::move(TrackData& td, const scalar trackTime)
{
// If we are running in parallel and the particle is on a
// boundary face
if (Pstream::parRun() && p.face() >= pMesh().nInternalFaces())
if
(
Pstream::parRun()
&& td.switchProcessor
&& p.face() >= pMesh().nInternalFaces()
)
{
label patchi = pbm.whichPatch(p.face());