mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +05:00
mpiwrapper
This commit is contained in:
parent
63d2f4bcd0
commit
13ccb811e7
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user