PatchInjection::parcelsToInject: Ensure parallel consistency

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1746
This commit is contained in:
Henry Weller
2015-06-16 15:14:15 +01:00
parent 04824fb8fc
commit fdbce86628

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -133,7 +133,7 @@ Foam::label Foam::PatchInjection<CloudType>::parcelsToInject
nParcelsToInject > 0
&& (
nParcels - scalar(nParcelsToInject)
> rnd.position(scalar(0), scalar(1))
> rnd.globalPosition(scalar(0), scalar(1))
)
)
{