BUG: LocalInteraction - do not reset list to zero

This commit is contained in:
andy
2014-01-09 12:57:06 +00:00
parent 61d7e8fc52
commit a1e9e51870

View File

@ -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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -298,7 +298,7 @@ void Foam::LocalInteraction<CloudType>::info(Ostream& os)
this->getModelProperty("massStick", mps0); this->getModelProperty("massStick", mps0);
// accumulate current data // accumulate current data
labelList npe(nEscape_, 0); labelList npe(nEscape_);
Pstream::listCombineGather(npe, plusEqOp<label>()); Pstream::listCombineGather(npe, plusEqOp<label>());
npe = npe + npe0; npe = npe + npe0;