mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
use relative mindist instead of absolute
I think this shouldn't be a relative value here.
This commit is contained in:
parent
7c88a6da76
commit
56d256523a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user