Report cluster size in AMG coarsening
This commit is contained in:
parent
a8ddd0885f
commit
fdffd47248
1 changed files with 14 additions and 0 deletions
|
@ -369,6 +369,20 @@ void Foam::BlockMatrixAgglomeration<Type>::calcAgglomeration()
|
||||||
{
|
{
|
||||||
Pout << ". Rejected" << endl;
|
Pout << ". Rejected" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Count cluster size
|
||||||
|
labelList clusterSize(nCoarseEqns_, 0);
|
||||||
|
|
||||||
|
forAll (agglomIndex_, eqnI)
|
||||||
|
{
|
||||||
|
clusterSize[agglomIndex_[eqnI]]++;
|
||||||
|
}
|
||||||
|
|
||||||
|
label minClusterSize = gMin(clusterSize);
|
||||||
|
label maxClusterSize = gMax(clusterSize);
|
||||||
|
|
||||||
|
Info<< "Cluster size: min = " << minClusterSize
|
||||||
|
<< " max = " << maxClusterSize << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue