diff --git a/ng/parallelfunc.cpp b/ng/parallelfunc.cpp index 23671ba8..6712e841 100644 --- a/ng/parallelfunc.cpp +++ b/ng/parallelfunc.cpp @@ -48,6 +48,7 @@ void Parallel_Exit(); namespace netgen { + extern std::shared_ptr ng_geometry; extern shared_ptr mesh; extern VisualSceneMesh vsmesh; extern VisualSceneSolution vssolution; @@ -310,6 +311,8 @@ void ParallelRun() else if ( message == "end" ) { + mesh.reset(); + ng_geometry.reset(); break; }