GAMGAgglomeration: corrected continueAgglomerating

Patch provided by Mattijs Janssens
Resolves bug-report http://bugs.openfoam.org/view.php?id=2226
This commit is contained in:
Henry Weller
2016-09-16 11:10:03 +01:00
parent 47811eae8e
commit b4bf4be700

View File

@ -211,9 +211,9 @@ bool Foam::GAMGAgglomeration::continueAgglomerating
) const
{
const label nTotalCoarseCells = returnReduce(nCoarseCells, sumOp<label>());
if (nTotalCoarseCells >= Pstream::nProcs()*nCellsInCoarsestLevel_)
if (nTotalCoarseCells < Pstream::nProcs()*nCellsInCoarsestLevel_)
{
return true;
return false;
}
else
{