mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
default ctor for NgMPI_Comm
This commit is contained in:
parent
ce75b69cd6
commit
c6d49734fb
@ -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; }
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user