From fe415ff8f768e974eb31372ac2faff482b370646 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Sat, 5 Nov 2016 21:16:22 +0000 Subject: [PATCH] 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 --- src/lagrangian/basic/Cloud/Cloud.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lagrangian/basic/Cloud/Cloud.C b/src/lagrangian/basic/Cloud/Cloud.C index 710e36bfd28..4dd3558af7b 100644 --- a/src/lagrangian/basic/Cloud/Cloud.C +++ b/src/lagrangian/basic/Cloud/Cloud.C @@ -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()); -- GitLab