PatchInjection::parcelsToInject: Ensure parallel consistency
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1746
This commit is contained in:
parent
04824fb8fc
commit
fdbce86628
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -133,7 +133,7 @@ Foam::label Foam::PatchInjection<CloudType>::parcelsToInject
|
||||||
nParcelsToInject > 0
|
nParcelsToInject > 0
|
||||||
&& (
|
&& (
|
||||||
nParcels - scalar(nParcelsToInject)
|
nParcels - scalar(nParcelsToInject)
|
||||||
> rnd.position(scalar(0), scalar(1))
|
> rnd.globalPosition(scalar(0), scalar(1))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue