From 042db258c8e3d140e039c86ab8c39d72b99e3cc4 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 21 Sep 2017 17:58:38 +0200 Subject: [PATCH] Fix build with GUI=ON, MPI=ON --- libsrc/visualization/mvdraw.cpp | 2 +- ng/parallelfunc.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;