mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: checkMesh: sort number of cells with a given number of faces
This commit is contained in:
@ -152,13 +152,17 @@ void Foam::printMeshStats(const polyMesh& mesh, const bool allTopology)
|
|||||||
{
|
{
|
||||||
Pstream::mapCombineGather(polyhedralFaces, plusEqOp<label>());
|
Pstream::mapCombineGather(polyhedralFaces, plusEqOp<label>());
|
||||||
|
|
||||||
Info<< " Breakdown of polyhedra by number of faces:" << endl;
|
Info<< " Breakdown of polyhedra by number of faces:" << nl
|
||||||
Info<< " faces" << " number of cells" << endl;
|
<< " faces" << " number of cells" << endl;
|
||||||
|
|
||||||
forAllConstIter(Map<label>, polyhedralFaces, iter)
|
labelList sortedKeys = polyhedralFaces.sortedToc();
|
||||||
|
|
||||||
|
forAll(sortedKeys, keyI)
|
||||||
{
|
{
|
||||||
|
label nFaces = sortedKeys[keyI];
|
||||||
|
|
||||||
Info<< setf(std::ios::right) << setw(13)
|
Info<< setf(std::ios::right) << setw(13)
|
||||||
<< iter.key() << " " << iter() << nl;
|
<< nFaces << " " << polyhedralFaces[nFaces] << nl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user