diff --git a/libsrc/interface/nginterface_v2.cpp b/libsrc/interface/nginterface_v2.cpp index e5fb36ec..bb93df5d 100644 --- a/libsrc/interface/nginterface_v2.cpp +++ b/libsrc/interface/nginterface_v2.cpp @@ -62,7 +62,7 @@ namespace netgen } NgMPI_Comm Ngx_Mesh :: GetCommunicator() const - { return Valid() ? mesh->GetCommunicator() : NgMPI_Comm(MPI_COMM_NULL); } + { return Valid() ? mesh->GetCommunicator() : NgMPI_Comm{}; } void Ngx_Mesh :: SaveMesh (ostream & ost) const { diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index af9c1ea6..31d67cac 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -1217,7 +1217,7 @@ namespace netgen mesh->SetMinimalH (mparam.minh); } -#ifdef PARALLEL +#ifdef PARALLELGL MyMPI_SendCmd ("bcastparthread"); MyMPI_Bcast (mparam.parthread, MPI_COMM_WORLD); #endif @@ -2703,7 +2703,7 @@ void PlayAnimFile(const char* name, int speed, int maxcnt) //cout << "stopped acis, outcome = " << res.ok() << endl; #endif -#ifdef PARALLEL +#ifdef PARALLELGL if (id == 0) MyMPI_SendCmd ("end"); MPI_Finalize(); #endif