From 6b4c2d40d745c96d3995d3927d58907fcb4aeb6a Mon Sep 17 00:00:00 2001 From: schnetter Date: Thu, 8 Apr 2004 15:31:25 +0000 Subject: Fix wrong assumption that MPI_Datatype is int. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@29 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8 --- src/slab.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3