GAMGAgglomeration: corrected continueAgglomerating
Patch provided by Mattijs Janssens Resolves bug-report http://bugs.openfoam.org/view.php?id=2226
This commit is contained in:
@ -211,9 +211,9 @@ bool Foam::GAMGAgglomeration::continueAgglomerating
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
const label nTotalCoarseCells = returnReduce(nCoarseCells, sumOp<label>());
|
const label nTotalCoarseCells = returnReduce(nCoarseCells, sumOp<label>());
|
||||||
if (nTotalCoarseCells >= Pstream::nProcs()*nCellsInCoarsestLevel_)
|
if (nTotalCoarseCells < Pstream::nProcs()*nCellsInCoarsestLevel_)
|
||||||
{
|
{
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user