From ad490200a043700115b6fc8448b10c25d7b33fb2 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 1 Aug 2017 10:15:07 +0200 Subject: [PATCH] fix import of neutral file format with multiple surface numbers --- libsrc/interface/readuser.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libsrc/interface/readuser.cpp b/libsrc/interface/readuser.cpp index 97cd193c..a92ef843 100644 --- a/libsrc/interface/readuser.cpp +++ b/libsrc/interface/readuser.cpp @@ -263,7 +263,8 @@ namespace netgen } mesh.AddFaceDescriptor (FaceDescriptor (1, 1, 0, 0)); - + int nfd = 1; + in >> nse; for (i = 1; i <= nse; i++) { @@ -271,6 +272,11 @@ namespace netgen in >> mat; Element2d el (TRIG); el.SetIndex (mat); + while(nfd> el.PNum(j); mesh.AddSurfaceElement (el);