GAMGAgglomeration: corrected continueAgglomerating
Patch provided by Mattijs Janssens Resolves bug-report http://bugs.openfoam.org/view.php?id=2226
This commit is contained in:
parent
47811eae8e
commit
b4bf4be700
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue