mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 03:40:34 +05:00
Merge branch 'use_relative_size' into 'master'
use relative mindist instead of absolute See merge request jschoeberl/netgen!239
This commit is contained in:
commit
666c79ea8e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user