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
Merge branch 'master' into disk
[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
505914e
..
b52c518
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_op.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_op.cpp
@@
-45,9
+45,13
@@
int PMPI_Op_commutative(MPI_Op op, int* commute){
}
MPI_Op PMPI_Op_f2c(MPI_Fint op){
}
MPI_Op PMPI_Op_f2c(MPI_Fint op){
+ if(op==-1)
+ return MPI_OP_NULL;
return static_cast<MPI_Op>(simgrid::smpi::Op::f2c(op));
}
MPI_Fint PMPI_Op_c2f(MPI_Op op){
return static_cast<MPI_Op>(simgrid::smpi::Op::f2c(op));
}
MPI_Fint PMPI_Op_c2f(MPI_Op op){
+ if(op==MPI_OP_NULL)
+ return -1;
return op->c2f();
}
return op->c2f();
}