Fix build with GUI=ON, MPI=ON

This commit is contained in:
Matthias Hochsteger 2017-09-21 17:58:38 +02:00
parent ac59096f91
commit 042db258c8
2 changed files with 4 additions and 2 deletions

View File

@ -832,7 +832,7 @@ namespace netgen
MyMPI_Bcast (selface); MyMPI_Bcast (selface);
vssolution.Broadcast (); netgen::GetVSSolution().Broadcast ();
} }
#endif #endif

View File

@ -50,7 +50,7 @@ namespace netgen {
extern std::shared_ptr<NetgenGeometry> ng_geometry; extern std::shared_ptr<NetgenGeometry> ng_geometry;
extern shared_ptr<Mesh> mesh; extern shared_ptr<Mesh> mesh;
extern VisualSceneMesh vsmesh; extern VisualSceneMesh vsmesh;
extern VisualSceneSolution vssolution; extern VisualSceneSolution & GetVSSolution();
extern Flags parameters; extern Flags parameters;
extern DLL_HEADER MeshingParameters mparam; extern DLL_HEADER MeshingParameters mparam;
} }
@ -62,6 +62,8 @@ using netgen::RegisterUserFormats;
void ParallelRun() void ParallelRun()
{ {
VisualSceneSolution vssolution = GetVSSolution();
string message; string message;
MPI_Status status; MPI_Status status;