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:
parent
8e01ae0462
commit
61195404f7
1 changed files with 6 additions and 1 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue