Wrapped Pout statements around debug switch
This commit is contained in:
parent
ef386d6d44
commit
9d01881b39
1 changed files with 19 additions and 11 deletions
|
@ -271,11 +271,15 @@ bool Foam::dynamicPolyRefinementFvMesh::update()
|
||||||
(
|
(
|
||||||
refinementSelectionPtr_->refinementCellCandidates()()
|
refinementSelectionPtr_->refinementCellCandidates()()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
Pout<< "Selected " << refCandidates.size()
|
Pout<< "Selected " << refCandidates.size()
|
||||||
<< " refinement candidates."
|
<< " refinement candidates."
|
||||||
<< endl;
|
<< 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()()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
Pout<< "Selected " << unrefCandidates.size()
|
Pout<< "Selected " << unrefCandidates.size()
|
||||||
<< " unrefinement candidates."
|
<< " unrefinement candidates."
|
||||||
<< endl;
|
<< 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;
|
||||||
|
|
Reference in a new issue