default ctor for NgMPI_Comm

This commit is contained in:
Joachim Schöberl 2019-02-12 08:03:20 +01:00
parent ce75b69cd6
commit c6d49734fb
2 changed files with 7 additions and 3 deletions

View File

@ -48,6 +48,10 @@ namespace ngcore
int * refcount;
int rank, size;
public:
NgMPI_Comm ()
: refcount(nullptr), rank(0), size(1)
{ ; }
NgMPI_Comm (MPI_Comm _comm, bool owns = false)
: comm(_comm)
{
@ -128,8 +132,8 @@ namespace ngcore
{
public:
NgMPI_Comm (MPI_Comm _comm, bool owns = false)
{ ; }
NgMPI_Comm () { ; }
NgMPI_Comm (MPI_Comm _comm, bool owns = false) { ; }
size_t Rank() const { return 0; }
size_t Size() const { return 1; }

View File

@ -32,7 +32,7 @@ namespace netgen
// TraceGlobal glob2("global2");
// global communicator for netgen
DLL_HEADER NgMPI_Comm ng_comm = MPI_COMM_WORLD;
DLL_HEADER NgMPI_Comm ng_comm;
weak_ptr<Mesh> global_mesh;
void SetGlobalMesh (shared_ptr<Mesh> m)