From 61195404f7cd198407ad068f45a14eba5e348491 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sat, 5 Nov 2016 21:20:18 +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 4bbfc9f99..7bbbc9137 100644 --- a/src/lagrangian/basic/Cloud/Cloud.C +++ b/src/lagrangian/basic/Cloud/Cloud.C @@ -261,7 +261,12 @@ void Foam::Cloud::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());