X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bf0be0a4483ee7319c120d3b06cb68d6dce5b451..6fd166d6132c999bfa781b58a5372c7cbdfe36b2:/src/smpi/smpi_op.cpp diff --git a/src/smpi/smpi_op.cpp b/src/smpi/smpi_op.cpp index 3cd260ea7c..8251f94263 100644 --- a/src/smpi/smpi_op.cpp +++ b/src/smpi/smpi_op.cpp @@ -241,7 +241,7 @@ void Op::apply(void *invec, void *inoutvec, int *len, MPI_Datatype datatype) if(! is_fortran_op_) this->func_(invec, inoutvec, len, &datatype); else{ - int tmp = smpi_type_c2f(datatype); + int tmp = datatype->c2f(); /* Unfortunately, the C and Fortran version of the MPI standard do not agree on the type here, thus the reinterpret_cast. */ this->func_(invec, inoutvec, len, reinterpret_cast(&tmp) ); @@ -249,5 +249,9 @@ void Op::apply(void *invec, void *inoutvec, int *len, MPI_Datatype datatype) } } +Op* Op::f2c(int id){ + return static_cast(F2C::f2c(id)); +} + } }