Report zone sizes

This commit is contained in:
Hrvoje Jasak 2016-04-18 10:18:16 +01:00
parent d9f01f2d23
commit 33c1be373c

View file

@ -250,6 +250,22 @@ Foam::label Foam::checkTopology
rs rs
); );
ctr.write(); ctr.write();
// Count number of cells in all regions
labelList nCellsInRegions(rs.nRegions(), 0);
forAll (rs, rsI)
{
nCellsInRegions[rs[rsI]]++;
}
Info<< "Nuumber of cells per region: " << nl;
forAll (nCellsInRegions, regionI)
{
Info<< tab << regionI << tab << nCellsInRegions[regionI] << nl;
}
Info<< endl;
} }
} }