X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3a1ea70a418f393ca1677074e928c664022295bd..f3b7e5f4b4d7c87ee3e8827313ec966ea8fc8387:/src/smpi/mpi/smpi_comm.cpp diff --git a/src/smpi/mpi/smpi_comm.cpp b/src/smpi/mpi/smpi_comm.cpp index b7cca369c4..dcd7d834e7 100644 --- a/src/smpi/mpi/smpi_comm.cpp +++ b/src/smpi/mpi/smpi_comm.cpp @@ -348,7 +348,7 @@ MPI_Comm Comm::find_intra_comm(int * leader){ int min_index = INT_MAX; // the minimum index will be the leader for (auto& actor : actor_list) { int index = actor.get_pid(); - if (this->group()->rank(actor.ciface()) != MPI_UNDEFINED) { // Is this process in the current group? + if (this->group()->rank(actor.get_ciface()) != MPI_UNDEFINED) { // Is this process in the current group? intra_comm_size++; if (index < min_index) min_index = index; @@ -358,8 +358,8 @@ MPI_Comm Comm::find_intra_comm(int * leader){ auto* group_intra = new Group(intra_comm_size); int i = 0; for (auto& actor : actor_list) { - if (this->group()->rank(actor.ciface()) != MPI_UNDEFINED) { - group_intra->set_mapping(actor.ciface(), i); + if (this->group()->rank(actor.get_ciface()) != MPI_UNDEFINED) { + group_intra->set_mapping(actor.get_ciface(), i); i++; } }