From 47de18a508c2aa7a50adb95a9dca6be1661149b9 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 6 Jul 2022 13:57:53 +0200 Subject: [PATCH] Avoid loading geometry from mesh file twice Ng_LoadMesh() tries to read the geometry from the mesh file. If it was read before by Mesh::Load(), the preloaded geometry is replaced by ng_geometry (which might be garbage) This is a mere workaround, not a clean solution (Mesh::Load() should handle everything, including MPI distribution of geometry) --- libsrc/meshing/meshclass.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index b323e87b..c89064cb 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -1660,10 +1660,6 @@ namespace netgen clusters -> Update(); } - auto geo = geometryregister.LoadFromMeshFile (infile); - if(geo) - geometry = geo; - SetNextMajorTimeStamp(); // PrintMemInfo (cout); }