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)
This commit is contained in:
Matthias Hochsteger 2022-07-06 13:57:53 +02:00
parent 00d6c94bd9
commit 47de18a508

View File

@ -1660,10 +1660,6 @@ namespace netgen
clusters -> Update(); clusters -> Update();
} }
auto geo = geometryregister.LoadFromMeshFile (infile);
if(geo)
geometry = geo;
SetNextMajorTimeStamp(); SetNextMajorTimeStamp();
// PrintMemInfo (cout); // PrintMemInfo (cout);
} }