Skip to content
Snippets Groups Projects
Commit 7eb952ae authored by mattijs's avatar mattijs
Browse files

ENH: fluxSummary: move region count to debug scope

parent 8cd22b2d
No related merge requests found
...@@ -513,17 +513,17 @@ void Foam::fluxSummary::initialiseCellZoneAndDirection ...@@ -513,17 +513,17 @@ void Foam::fluxSummary::initialiseCellZoneAndDirection
returnReduce(patch.nEdges(), sumOp<label>()) returnReduce(patch.nEdges(), sumOp<label>())
); );
label nCells = 0; if (debug)
forAll(allFaceInfo, faceI)
{ {
if (allFaceInfo[faceI].region() == regionI) label nCells = 0;
forAll(allFaceInfo, faceI)
{ {
nCells++; if (allFaceInfo[faceI].region() == regionI)
{
nCells++;
}
} }
}
if (debug)
{
Info<< "*** region:" << regionI Info<< "*** region:" << regionI
<< " found:" << returnReduce(nCells, sumOp<label>()) << " found:" << returnReduce(nCells, sumOp<label>())
<< " faces" << endl; << " faces" << endl;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment