X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/375ccd95341779289dbafc250fda96c3bb39f9cc..4cd03d236d21b16b2607d67b146cc44b402e7bdd:/src/kernel/routing/AsCluster.hpp diff --git a/src/kernel/routing/AsCluster.hpp b/src/kernel/routing/AsCluster.hpp index 229b73fe5d..082333e7c3 100644 --- a/src/kernel/routing/AsCluster.hpp +++ b/src/kernel/routing/AsCluster.hpp @@ -6,6 +6,8 @@ #ifndef SIMGRID_ROUTING_CLUSTER_HPP_ #define SIMGRID_ROUTING_CLUSTER_HPP_ +#include + #include "src/kernel/routing/AsImpl.hpp" namespace simgrid { @@ -23,7 +25,8 @@ public: virtual void create_links_for_node(sg_platf_cluster_cbarg_t cluster, int id, int rank, int position); virtual void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster) {} - std::vector privateLinks_; + /* We use a map instead of a std::vector here because that's a sparse vector. Some values may not exist */ + std::unordered_map privateLinks_; Link* backbone_ = nullptr; void *loopback_ = nullptr;