mpiwrapper

This commit is contained in:
Joachim Schöberl 2019-02-11 23:13:12 +01:00
parent 63d2f4bcd0
commit 13ccb811e7

View File

@ -100,8 +100,14 @@ namespace ngcore
#else #else
class MPI_Comm { }; class MPI_Comm {
static MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL; int nr;
public:
MPI_Comm (int _nr = 0) : nr(_nr) { ; }
operator int() const { return nr; }
bool operator== (MPI_Comm c2) const { return nr == c2.nr; }
};
static MPI_Comm MPI_COMM_WORLD = 12345, MPI_COMM_NULL = 10000;
class NgMPI_Comm class NgMPI_Comm
{ {