aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2004-04-08 15:31:25 +0000
committerschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2004-04-08 15:31:25 +0000
commit6b4c2d40d745c96d3995d3927d58907fcb4aeb6a (patch)
tree3b8d4ead1ea07e2661847864bcb584b60974399b /src
parent06fdcff8388130128cd77425be4fe055b9fa8549 (diff)
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
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) {