From: Christian Heinrich Date: Mon, 15 Jan 2018 22:51:32 +0000 (+0100) Subject: [SMPI] Make Comm::rank() use Actors X-Git-Tag: v3.19~312^2~41 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e9c425bf88e177d2edda2d7362421103597488cd?ds=sidebyside [SMPI] Make Comm::rank() use Actors --- diff --git a/src/smpi/mpi/smpi_comm.cpp b/src/smpi/mpi/smpi_comm.cpp index 3da5bbf07c..ac8abf380c 100644 --- a/src/smpi/mpi/smpi_comm.cpp +++ b/src/smpi/mpi/smpi_comm.cpp @@ -107,7 +107,7 @@ int Comm::rank() { if (this == MPI_COMM_UNINITIALIZED) return smpi_process()->comm_world()->rank(); - return group_->rank(smpi_process()->index()); + return group_->rank(simgrid::s4u::Actor::self()); } void Comm::get_name (char* name, int* len)