Write debug output only if debugparam.debugoutput is set

This commit is contained in:
Matthias Hochsteger 2024-10-24 11:31:54 +02:00
parent 6aa634ce1f
commit 600b33edd6
2 changed files with 8 additions and 5 deletions

View File

@ -198,10 +198,13 @@ void BoundaryLayerTool ::InterpolateGrowthVectors()
} }
if (!point_found) if (!point_found)
{ {
cerr << "Could not find connected list of line segments for edge " if (debugparam.debugoutput)
<< edgenr << endl; {
cerr << "current points: " << endl cerr << "Could not find connected list of line segments for edge "
<< points << endl; << edgenr << endl;
cerr << "current points: " << endl
<< points << endl;
}
continue; continue;
} }

View File

@ -518,7 +518,7 @@ struct GrowthVectorLimiter
ScaleLimit(pi_max_limit, 0.9); ScaleLimit(pi_max_limit, 0.9);
set_points(); set_points();
counter++; counter++;
if (counter > 20) if (debugparam.debugoutput && counter > 20)
{ {
cerr << "Limit intersecting surface elements: too many " cerr << "Limit intersecting surface elements: too many "
"limitation steps, sels: " "limitation steps, sels: "