diff --git a/src/core/mpi/MPIWrapper.h b/src/core/mpi/MPIWrapper.h index 112e59d9fe282121ca508a4bb209724ef6c38e91..3cdc7d54626747d8a6d9010a2211e4ccfbbeb54d 100644 --- a/src/core/mpi/MPIWrapper.h +++ b/src/core/mpi/MPIWrapper.h @@ -91,6 +91,7 @@ typedef int MPI_File; typedef int MPI_Offset; typedef int MPI_Info; typedef int MPI_Aint; +typedef void (MPI_User_function) (void* a, void* b, int* len, MPI_Datatype*); struct MPI_Status { @@ -107,7 +108,6 @@ struct MPI_Status int MPI_ERROR; }; -typedef void (MPI_User_function) (void * a, void * b, int * len, MPI_Datatype * ); const int MPI_COMM_NULL = 0; @@ -246,6 +246,10 @@ inline int MPI_Type_commit( MPI_Datatype* ) { WALBERLA_MPI_FUNCTION_ERROR } inline int MPI_Type_free( MPI_Datatype* ) { WALBERLA_MPI_FUNCTION_ERROR } inline int MPI_Type_create_resized( MPI_Datatype, MPI_Aint, MPI_Aint, MPI_Datatype* ) { WALBERLA_MPI_FUNCTION_ERROR } inline int MPI_Type_size( MPI_Datatype, int * ) { WALBERLA_MPI_FUNCTION_ERROR } +inline int MPI_Type_get_extent(MPI_Datatype, MPI_Aint*, MPI_Aint*) { WALBERLA_MPI_FUNCTION_ERROR } +inline int MPI_Type_create_struct(int, const int[], const MPI_Aint[], const MPI_Datatype[], MPI_Datatype*) { WALBERLA_MPI_FUNCTION_ERROR } + +inline int MPI_Op_create(MPI_User_function*, int, MPI_Op*) { WALBERLA_MPI_FUNCTION_ERROR } inline int MPI_Get_processor_name( char*, int* ) { WALBERLA_MPI_FUNCTION_ERROR } @@ -266,11 +270,6 @@ inline int MPI_Error_string ( int, char*, int* ) { WALBERLA_MPI_FUNCTION_ERROR } inline double MPI_Wtime() { WALBERLA_MPI_FUNCTION_ERROR } -inline int MPI_Op_create(MPI_User_function*, int, MPI_Op*) { WALBERLA_MPI_FUNCTION_ERROR }; -inline int MPI_Type_create_struct(int, const int[], MPI_Aint[], MPI_Datatype[], MPI_Datatype*) { WALBERLA_MPI_FUNCTION_ERROR }; -inline int MPI_Type_create_resized(MPI_Datatype, MPI_Aint, MPI_Aint, MPI_Datatype*) { WALBERLA_MPI_FUNCTION_ERROR }; -int MPI_Type_commit(MPI_Datatype*) { WALBERLA_MPI_FUNCTION_ERROR }; - #undef WALBERLA_MPI_FUNCTION_ERROR } // namespace mpistubs