diff --git a/libsrc/geom2d/genmesh2d.cpp b/libsrc/geom2d/genmesh2d.cpp index 6045598a..56dfcf96 100644 --- a/libsrc/geom2d/genmesh2d.cpp +++ b/libsrc/geom2d/genmesh2d.cpp @@ -249,7 +249,6 @@ namespace netgen double useh = h; if (hl > 0) useh = min2 (h, hl); if (hr > 0) useh = min2 (h, hr); - Partition(GetSpline(i), mp, useh, elto0, mesh2d, searchtree, i+1); } else diff --git a/libsrc/geom2d/geometry2d.cpp b/libsrc/geom2d/geometry2d.cpp index 23b29596..ffce88f2 100644 --- a/libsrc/geom2d/geometry2d.cpp +++ b/libsrc/geom2d/geometry2d.cpp @@ -436,8 +436,7 @@ namespace netgen infile >> numdomains; materials.SetSize(numdomains) ; maxh.SetSize ( numdomains ) ; - for ( int i = 0; i < numdomains; i++) - maxh[i] = 1000; + maxh = 1e99; TestComment ( infile ); @@ -467,7 +466,7 @@ namespace netgen if (infile.good()) infile.putback (ch); - maxh[domainnr-1] = flags.GetNumFlag ( "maxh", 1000); + maxh[domainnr-1] = flags.GetNumFlag ( "maxh", 1e99); } return; }