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
|
||||
class MPI_Comm { };
|
||||
static MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL;
|
||||
|
||||
class NgMPI_Comm
|
||||
{
|
||||
|
@ -44,8 +44,8 @@ namespace netgen
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL;
|
||||
// #else
|
||||
// MPI_Comm MPI_COMM_WORLD, MPI_COMM_NULL;
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -40,7 +40,6 @@ namespace netgen
|
||||
}
|
||||
#else
|
||||
// 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_GetId (MPI_Comm comm = ng_comm) { return 0; }
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user