- for (auto const& actor : process_list) {
- // TODO cheinrich : We should not need the const_cast here and above.
- if(this->group()->rank(simgrid::s4u::Actor::byPid(actor.pid))!=MPI_UNDEFINED){
- group_intra->set_mapping(simgrid::s4u::Actor::byPid(actor.pid), i);
+ for (auto& actor : process_list) {
+ if (this->group()->rank(actor.iface()) != MPI_UNDEFINED) {
+ group_intra->set_mapping(actor.iface(), i);