Fix abort criteria in boundarylayer thickness limitation

This commit is contained in:
Matthias Hochsteger 2024-10-24 17:10:10 +02:00
parent 7f294a582c
commit 4f927f5469

View File

@ -534,16 +534,16 @@ struct GrowthVectorLimiter
ScaleLimit(pi_max_limit, 0.9); ScaleLimit(pi_max_limit, 0.9);
set_points(); set_points();
counter++; counter++;
if (debugparam.debugoutput && counter > 20)
{
cerr << "Limit intersecting surface elements: too many "
"limitation steps, sels: "
<< Get(sei) << '\t' << Get(sej) << endl;
if (GetLimit(pi_max_limit) < 1e-10) if (GetLimit(pi_max_limit) < 1e-10)
{ {
WriteErrorMesh("error_blayer_self_intersection_pi" + ToString(pi_max_limit) + ".vol.gz"); WriteErrorMesh("error_blayer_self_intersection_pi" + ToString(pi_max_limit) + ".vol.gz");
throw NgException("Stop meshing in boundary layer thickness limitation: overlapping regions detected at elements " + ToString(tri) + " and " + ToString(tri2)); throw NgException("Stop meshing in boundary layer thickness limitation: overlapping regions detected at elements " + ToString(tri) + " and " + ToString(tri2));
} }
if (debugparam.debugoutput && counter > 20)
{
cerr << "Limit intersecting surface elements: too many "
"limitation steps, sels: "
<< Get(sei) << '\t' << Get(sej) << endl;
for (auto si : {sei, sej}) for (auto si : {sei, sej})
{ {
auto sel = Get(si); auto sel = Get(si);