use relative mindist instead of absolute

I think this shouldn't be a relative value here.
This commit is contained in:
Christopher Lackner 2019-09-16 15:38:20 +02:00
parent 7c88a6da76
commit 56d256523a

View File

@ -1252,12 +1252,12 @@ namespace netgen
mindist /= (occparam.resthcloseedgefac + VSMALL);
if (mindist < 1e-3)
if (mindist < 1e-3 * bb.Diam())
{
(*testout) << "extremely small local h: " << mindist
<< " --> setting to 1e-3" << endl;
<< " --> setting to " << 1e-3 * bb.Diam() << endl;
(*testout) << "somewhere near " << line.p0 << " - " << line.p1 << endl;
mindist = 1e-3;
mindist = 1e-3 * bb.Diam();
}
mesh.RestrictLocalHLine(line.p0, line.p1, mindist);