summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-06-11 10:52:06 +0200
committerAnton Khirnov <anton@khirnov.net>2019-06-11 10:52:06 +0200
commitac042bca49f5b269ac3cb4d30c4a191158dc4f25 (patch)
treed048733dc2b2d5070503ac7b86a775bbb9e48fec
parent2a22da0b5724e68e4b2644cb2289f2947f9d5d46 (diff)
Do not pass NULL to MPI as a datatype.
Use MPI_DATATYPE_NULL.
-rw-r--r--src/maximal_slicing_axi_mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/maximal_slicing_axi_mg.c b/src/maximal_slicing_axi_mg.c
index 365c3ce..100f3c0 100644
--- a/src/maximal_slicing_axi_mg.c
+++ b/src/maximal_slicing_axi_mg.c
@@ -281,7 +281,7 @@ static void get_extents(size_t **pextents, int *level_size, cGH *gh)
}
if (nb_procs > 1)
- MPI_Allgather(MPI_IN_PLACE, 0, NULL, extents, 4 * sizeof(*extents), MPI_BYTE, MPI_COMM_WORLD);
+ MPI_Allgather(MPI_IN_PLACE, 0, MPI_DATATYPE_NULL, extents, 4 * sizeof(*extents), MPI_BYTE, MPI_COMM_WORLD);
level_size[0] = 0;
level_size[1] = 0;