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:20:18 +00:00
parent 8e01ae0462
commit 61195404f7

View file

@ -261,7 +261,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());