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:
@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user