From 36a470fe047c535050636729c48f63260cf56f11 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 7 Jan 2014 10:12:42 +0000 Subject: [PATCH] bix maxh --- libsrc/geom2d/genmesh2d.cpp | 1 - libsrc/geom2d/geometry2d.cpp | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) 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; }