diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index 5bea6c6c..7ce79d8c 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -1295,8 +1295,8 @@ namespace netgen if (mparam.perfstepsstart <= MESHCONST_ANALYSE) { - // delete mesh; - // mesh = make_shared(); + if(mesh.get() == nullptr) + mesh = make_shared(); mesh->geomtype = Mesh::GEOM_OCC; OCCSetLocalMeshSize(geom,*mesh);