aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slab.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/slab.c b/src/slab.c
index b461b82..fb3425f 100644
--- a/src/slab.c
+++ b/src/slab.c
@@ -302,8 +302,7 @@ get_mpi_comm (const cGH * restrict const cctkGH)
return PUGH_pGH(cctkGH)->PUGH_COMM_WORLD;
}
# endif
- assert (0);
- return -1;
+ return MPI_COMM_WORLD;
#else
return 0;
#endif
@@ -384,7 +383,7 @@ normal_type (int cactustype)
/* Find the MPI datatype corresponding to a Cactus datatype */
-static int mpi_type (int const cactustype)
+static MPI_Datatype mpi_type (int const cactustype)
{
int const normaltype = normal_type (cactustype);
switch (normaltype) {