A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change handling of MPI_PROC_NULL as a src or a dest.
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_pmpi_op.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_op.cpp
b/src/smpi/bindings/smpi_pmpi_op.cpp
index
80886a9
..
e90a6ba
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_op.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_op.cpp
@@
-22,6
+22,8
@@
int PMPI_Op_free(MPI_Op * op)
{
CHECK_NULL(1, MPI_ERR_ARG, op)
CHECK_MPI_NULL(1, MPI_OP_NULL, MPI_ERR_OP, *op)
+ if((*op)->is_predefined())
+ return MPI_ERR_OP;
simgrid::smpi::Op::unref(op);
*op = MPI_OP_NULL;
return MPI_SUCCESS;