diff --git a/libsrc/visualization/mvdraw.cpp b/libsrc/visualization/mvdraw.cpp index f5d00922..ca563714 100644 --- a/libsrc/visualization/mvdraw.cpp +++ b/libsrc/visualization/mvdraw.cpp @@ -832,7 +832,7 @@ namespace netgen MyMPI_Bcast (selface); - vssolution.Broadcast (); + netgen::GetVSSolution().Broadcast (); } #endif diff --git a/ng/parallelfunc.cpp b/ng/parallelfunc.cpp index d3e6d7d7..ac95b226 100644 --- a/ng/parallelfunc.cpp +++ b/ng/parallelfunc.cpp @@ -50,7 +50,7 @@ namespace netgen { extern std::shared_ptr ng_geometry; extern shared_ptr mesh; extern VisualSceneMesh vsmesh; - extern VisualSceneSolution vssolution; + extern VisualSceneSolution & GetVSSolution(); extern Flags parameters; extern DLL_HEADER MeshingParameters mparam; } @@ -62,6 +62,8 @@ using netgen::RegisterUserFormats; void ParallelRun() { + VisualSceneSolution vssolution = GetVSSolution(); + string message; MPI_Status status;