From d19b1ec35f180c28e3bfbcba42bba7dd80662570 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 17 May 2019 16:23:16 +0200 Subject: [PATCH] allow setting of maxh in old in2d files --- libsrc/geom2d/geometry2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/geom2d/geometry2d.cpp b/libsrc/geom2d/geometry2d.cpp index f18dd335..91ad9b78 100644 --- a/libsrc/geom2d/geometry2d.cpp +++ b/libsrc/geom2d/geometry2d.cpp @@ -138,7 +138,7 @@ namespace netgen geompoints.Append (GeomPoint(x, hd)); geompoints.Last().hpref = flags.GetDefineFlag ("hpref"); - geompoints.Last().hmax = 1e99; + geompoints.Last().hmax = flags.GetNumFlag("hmax", 1e99); } PrintMessage (3, nump, " points loaded"); @@ -201,7 +201,6 @@ namespace netgen infile >> spex->reffak; spex -> leftdom = leftdom; spex -> rightdom = rightdom; - spex -> hmax = 1e99; splines.Append (spex); @@ -233,6 +232,7 @@ namespace netgen delete bcnames[mybc]; bcnames[mybc] = new string (flags.GetStringFlag("bcname","") ); } + spex -> hmax = flags.GetNumFlag("hmax", 1e99); } }