diff options
author | schnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2004-04-08 15:31:25 +0000 |
---|---|---|
committer | schnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2004-04-08 15:31:25 +0000 |
commit | 6b4c2d40d745c96d3995d3927d58907fcb4aeb6a (patch) | |
tree | 3b8d4ead1ea07e2661847864bcb584b60974399b | |
parent | 06fdcff8388130128cd77425be4fe055b9fa8549 (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
-rw-r--r-- | src/slab.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |