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
add two fortran declarations
[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 5dedee4a9b0be978056660202c1fae2586834771..a6200c1d9809ce57e9838ce883a3dfa6b5811753 100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_op.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_op.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-202
0
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-202
1
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-22,13
+22,15
@@
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)
{
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;
}
int PMPI_Op_commutative(MPI_Op op, int* commute){
simgrid::smpi::Op::unref(op);
*op = MPI_OP_NULL;
return MPI_SUCCESS;
}
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;
CHECK_NULL(1, MPI_ERR_ARG, commute)
*commute = op->is_commutative();
return MPI_SUCCESS;
@@
-37,7
+39,7
@@
int PMPI_Op_commutative(MPI_Op op, int* commute){
MPI_Op PMPI_Op_f2c(MPI_Fint op){
if(op==-1)
return MPI_OP_NULL;
MPI_Op PMPI_Op_f2c(MPI_Fint op){
if(op==-1)
return MPI_OP_NULL;
- return s
tatic_cast<MPI_Op>(simgrid::smpi::Op::f2c(op)
);
+ return s
imgrid::smpi::Op::f2c(op
);
}
MPI_Fint PMPI_Op_c2f(MPI_Op op){
}
MPI_Fint PMPI_Op_c2f(MPI_Op op){