Commit 7cc35abc authored by Henry Weller's avatar Henry Weller
Browse files

GAMGAgglomeration: corrected continueAgglomerating

Patch provided by Mattijs Janssens
Resolves bug-report http://bugs.openfoam.org/view.php?id=2226
parent f281477d
......@@ -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
{
......
Supports Markdown
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