Wrapped Pout statements around debug switch

This commit is contained in:
Vuko Vukcevic 2018-12-11 12:44:59 +01:00
parent ef386d6d44
commit 9d01881b39

View file

@ -271,11 +271,15 @@ bool Foam::dynamicPolyRefinementFvMesh::update()
( (
refinementSelectionPtr_->refinementCellCandidates()() refinementSelectionPtr_->refinementCellCandidates()()
); );
Pout<< "Selected " << refCandidates.size()
<< " refinement candidates." if (debug)
<< endl; {
Pout<< "Selected " << refCandidates.size()
<< " refinement candidates."
<< endl;
}
} }
else else if (debug)
{ {
Pout<< "Skipping refinement for this time-step..." << endl; Pout<< "Skipping refinement for this time-step..." << endl;
} }
@ -297,11 +301,15 @@ bool Foam::dynamicPolyRefinementFvMesh::update()
( (
refinementSelectionPtr_->unrefinementPointCandidates()() refinementSelectionPtr_->unrefinementPointCandidates()()
); );
Pout<< "Selected " << unrefCandidates.size()
<< " unrefinement candidates." if (debug)
<< endl; {
Pout<< "Selected " << unrefCandidates.size()
<< " unrefinement candidates."
<< endl;
}
} }
else else if (debug)
{ {
Pout<< "Skipping unrefinement for this time-step..." << endl; Pout<< "Skipping unrefinement for this time-step..." << endl;
} }
@ -344,13 +352,13 @@ bool Foam::dynamicPolyRefinementFvMesh::update()
// some topo changes // some topo changes
if (sizeCellMap) if (sizeCellMap)
{ {
Pout<< "Successfully performed polyhedral refinement. " Info<< "Successfully performed polyhedral refinement. "
<< "Changed from " << nOldCells << " to " << sizeCellMap << "Changed from " << nOldCells << " to " << sizeCellMap
<< " cells." << endl; << " cells." << endl;
} }
else else
{ {
Pout<< "Refinement/unrefinement not performed in this time step " Info<< "Refinement/unrefinement not performed in this time step "
<< "since no cells were selected." << endl; << "since no cells were selected." << endl;
} }
@ -363,7 +371,7 @@ bool Foam::dynamicPolyRefinementFvMesh::update()
curTimeIndex_ = time().timeIndex(); curTimeIndex_ = time().timeIndex();
} }
Pout<< "No refinement/unrefinement" << endl; Info<< "No refinement/unrefinement" << endl;
// No refinement/unrefinement at this time step. Return false // No refinement/unrefinement at this time step. Return false
return false; return false;