mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
mpiwrapper
This commit is contained in:
parent
2c5fdfbfec
commit
63d2f4bcd0
@ -101,6 +101,7 @@ namespace ngcore
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
class MPI_Comm { };
|
class MPI_Comm { };
|
||||||
|
static MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL;
|
||||||
|
|
||||||
class NgMPI_Comm
|
class NgMPI_Comm
|
||||||
{
|
{
|
||||||
|
@ -44,8 +44,8 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#else
|
// #else
|
||||||
MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL;
|
// MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,7 +40,6 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// enum { MPI_COMM_WORLD = 12345, MPI_COMM_NULL = 0};
|
// enum { MPI_COMM_WORLD = 12345, MPI_COMM_NULL = 0};
|
||||||
extern MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL;
|
|
||||||
inline int MyMPI_GetNTasks (MPI_Comm comm = ng_comm) { return 1; }
|
inline int MyMPI_GetNTasks (MPI_Comm comm = ng_comm) { return 1; }
|
||||||
inline int MyMPI_GetId (MPI_Comm comm = ng_comm) { return 0; }
|
inline int MyMPI_GetId (MPI_Comm comm = ng_comm) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user