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

PatchInjection::parcelsToInject: Ensure parallel consistency

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1746
parent 35c53a0e
Branches
Tags
No related merge requests found
......@@ -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))
)
)
{
......
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