X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3d03a9262aa220f6853ef6e803e4d5a393d94296..260f6acdb4f0d33a1cd039cdf02124ebd9aa54cd:/src/smpi/smpi_mpi_dt.c diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index bc03ee9f5e..0db4d81a21 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -1460,7 +1460,7 @@ MPI_Op smpi_op_new(MPI_User_function * function, int commute) int smpi_op_is_commute(MPI_Op op) { - return op-> is_commute; + return (op==MPI_OP_NULL) ? 1 : op-> is_commute; } void smpi_op_destroy(MPI_Op op)