From 9d01c080f9fce3c7e73d7eda38b133eda76f5ae7 Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 1 Mar 2019 11:33:53 +0100 Subject: [PATCH] Set global geoemtry --- libsrc/interface/nginterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/interface/nginterface.cpp b/libsrc/interface/nginterface.cpp index 8df20a88..c143e5ef 100644 --- a/libsrc/interface/nginterface.cpp +++ b/libsrc/interface/nginterface.cpp @@ -253,7 +253,10 @@ void Ng_LoadMesh (const char * filename, ngcore::NgMPI_Comm comm) istringstream geom_infile(string((const char*)&buf[0], buf.Size())); geo = geometryregister.LoadFromMeshFile(geom_infile); } - if(geo!=nullptr) mesh->SetGeometry(geo); + if(geo!=nullptr) { + ng_geometry = geo; + mesh->SetGeometry(geo); + } else if(ng_geometry!=nullptr) mesh->SetGeometry(ng_geometry); }