Merge branch 'use_relative_size' into 'master'

use relative mindist instead of absolute

See merge request jschoeberl/netgen!239
This commit is contained in:
Joachim Schöberl 2019-09-16 15:38:59 +00:00
commit 666c79ea8e

View File

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