X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/23dc3ae2ac429b801b81976e763b2034217ae200..f2c9678ae1fbcdc391c1aa62ca7f6ea7aa8b4bdd:/src/smpi/smpi_request.cpp diff --git a/src/smpi/smpi_request.cpp b/src/smpi/smpi_request.cpp index 85f55b60aa..b206d0a0a6 100644 --- a/src/smpi/smpi_request.cpp +++ b/src/smpi/smpi_request.cpp @@ -1004,23 +1004,23 @@ MPI_Request Request::f2c(int id) { char key[KEY_SIZE]; if(id==MPI_FORTRAN_REQUEST_NULL) return static_cast(MPI_REQUEST_NULL); - return static_cast(xbt_dict_get(F2C::f2c_lookup_, get_key_id(key, id))); + return static_cast(xbt_dict_get(F2C::f2c_lookup(), get_key_id(key, id))); } int Request::add_f() { - if(F2C::f2c_lookup_==nullptr){ - F2C::f2c_lookup_=xbt_dict_new_homogeneous(nullptr); + if(F2C::f2c_lookup()==nullptr){ + F2C::set_f2c_lookup(xbt_dict_new_homogeneous(nullptr)); } char key[KEY_SIZE]; - xbt_dict_set(F2C::f2c_lookup_, get_key_id(key, F2C::f2c_id_), this, nullptr); - F2C::f2c_id_++; - return F2C::f2c_id_-1; + xbt_dict_set(F2C::f2c_lookup(), get_key_id(key, F2C::f2c_id()), this, nullptr); + F2C::f2c_id_increment(); + return F2C::f2c_id()-1; } void Request::free_f(int id) { char key[KEY_SIZE]; if(id!=MPI_FORTRAN_REQUEST_NULL) - xbt_dict_remove(F2C::f2c_lookup_, get_key_id(key, id)); + xbt_dict_remove(F2C::f2c_lookup(), get_key_id(key, id)); }