Skip to content
Snippets Groups Projects
Commit fe415ff8 authored by Henry Weller's avatar Henry Weller
Browse files

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
parent fb95a08e
No related merge requests found
...@@ -258,7 +258,12 @@ void Foam::Cloud<ParticleType>::move(TrackData& td, const scalar trackTime) ...@@ -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 // If we are running in parallel and the particle is on a
// boundary face // boundary face
if (Pstream::parRun() && p.face() >= pMesh().nInternalFaces()) if
(
Pstream::parRun()
&& td.switchProcessor
&& p.face() >= pMesh().nInternalFaces()
)
{ {
label patchi = pbm.whichPatch(p.face()); label patchi = pbm.whichPatch(p.face());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment