From d280c6ed36861ca6a0c72aaea747f28c20c4eae1 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Wed, 26 Jun 2013 16:35:53 +0200 Subject: [PATCH] avoid breaking replay, handle MPI_OP_NULL case --- src/smpi/smpi_mpi_dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1