Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
validate that MPI_Op can be applied at entrance of MPI call, instead of xbt_dying...
[simgrid.git] / src / smpi / bindings / smpi_pmpi_op.cpp
index e90a6ba..a6200c1 100644 (file)
@@ -30,7 +30,7 @@ int PMPI_Op_free(MPI_Op * op)
 }
 
 int PMPI_Op_commutative(MPI_Op op, int* commute){
-  CHECK_OP(1)
+  CHECK_MPI_NULL(1, MPI_OP_NULL, MPI_ERR_OP, op)
   CHECK_NULL(1, MPI_ERR_ARG, commute)
   *commute = op->is_commutative();
   return MPI_SUCCESS;