X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2807fde4fd1f59c230d69a934634c5dfb77905f2..8af234ceaafaa61a53dc2550ebd28283bf716608:/src/smpi/bindings/smpi_pmpi_group.cpp diff --git a/src/smpi/bindings/smpi_pmpi_group.cpp b/src/smpi/bindings/smpi_pmpi_group.cpp index 4f1c188061..93f0cc6d2a 100644 --- a/src/smpi/bindings/smpi_pmpi_group.cpp +++ b/src/smpi/bindings/smpi_pmpi_group.cpp @@ -47,7 +47,7 @@ int PMPI_Group_rank(MPI_Group group, int *rank) } else if (rank == nullptr) { return MPI_ERR_ARG; } else { - *rank = group->rank(smpi_process()->index()); + *rank = group->rank(simgrid::s4u::Actor::self()->getPid()); return MPI_SUCCESS; } } @@ -61,8 +61,8 @@ int PMPI_Group_translate_ranks(MPI_Group group1, int n, int *ranks1, MPI_Group g if(ranks1[i]==MPI_PROC_NULL){ ranks2[i]=MPI_PROC_NULL; }else{ - int index = group1->index(ranks1[i]); - ranks2[i] = group2->rank(index); + simgrid::s4u::ActorPtr actor = group1->actor(ranks1[i]); + ranks2[i] = group2->rank(actor); } } return MPI_SUCCESS;