ENH: fluxSummary: move region count to debug scope

This commit is contained in:
mattijs
2015-12-01 15:43:29 +00:00
parent 62df6d188d
commit c02a29411e

View File

@ -513,17 +513,17 @@ void Foam::fluxSummary::initialiseCellZoneAndDirection
returnReduce(patch.nEdges(), sumOp<label>()) returnReduce(patch.nEdges(), sumOp<label>())
); );
label nCells = 0;
forAll(allFaceInfo, faceI)
{
if (allFaceInfo[faceI].region() == regionI)
{
nCells++;
}
}
if (debug) if (debug)
{ {
label nCells = 0;
forAll(allFaceInfo, faceI)
{
if (allFaceInfo[faceI].region() == regionI)
{
nCells++;
}
}
Info<< "*** region:" << regionI Info<< "*** region:" << regionI
<< " found:" << returnReduce(nCells, sumOp<label>()) << " found:" << returnReduce(nCells, sumOp<label>())
<< " faces" << endl; << " faces" << endl;