X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4bfa8a32e0083bcd28a78689625c4806c2fbbf46..4e73c03c087fd07184d9ed45224f7fbad24e686e:/src/smpi/include/smpi_group.hpp diff --git a/src/smpi/include/smpi_group.hpp b/src/smpi/include/smpi_group.hpp index da9180e595..1a008533a1 100644 --- a/src/smpi/include/smpi_group.hpp +++ b/src/smpi/include/smpi_group.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2018. The SimGrid Team. +/* Copyright (c) 2010-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -24,6 +24,7 @@ class Group : public F2C{ */ std::vector rank_to_actor_map_; std::map actor_to_rank_map_; + std::vector index_to_rank_map_; int refcount_; public: @@ -32,6 +33,7 @@ class Group : public F2C{ explicit Group(Group* origin); void set_mapping(simgrid::s4u::ActorPtr actor, int rank); + int rank(int index); simgrid::s4u::ActorPtr actor(int rank); int rank(const simgrid::s4u::ActorPtr process); void ref();