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)
{
cerr << "Could not find connected list of line segments for edge "
<< edgenr << endl;
cerr << "current points: " << endl
<< points << endl;
if (debugparam.debugoutput)
{
cerr << "Could not find connected list of line segments for edge "
<< edgenr << endl;
cerr << "current points: " << endl
<< points << endl;
}
continue;
}

View File

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