Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
prefer this_actor:: to Actor::self()->
[simgrid.git] / src / smpi / mpi / smpi_f2c.cpp
index 0b17daa22c73c6b12beac7b2d45ad694852220d3..920650f2a3707e24316b6b4a7a0dd74bd6e42791 100644 (file)
@@ -39,7 +39,7 @@ char* F2C::get_key(char* key, int id) {
 }
 
 char* F2C::get_key_id(char* key, int id) {
-  std::snprintf(key, KEY_SIZE, "%x_%d", static_cast<unsigned>(id), smpi_process()->index());
+  std::snprintf(key, KEY_SIZE, "%x_%ld", static_cast<unsigned>(id), simgrid::s4u::this_actor::getPid());
   return key;
 }