X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/184b805aa8767a3b01366fa5a0d2fe739538e4ca..15822682005a67cef0250f877746f1d37fe412d4:/src/kernel/routing/AsClusterTorus.cpp diff --git a/src/kernel/routing/AsClusterTorus.cpp b/src/kernel/routing/AsClusterTorus.cpp index b88ed42d4e..3aaa1119f0 100644 --- a/src/kernel/routing/AsClusterTorus.cpp +++ b/src/kernel/routing/AsClusterTorus.cpp @@ -27,8 +27,8 @@ inline unsigned int *rankId_to_coords(int rankId, xbt_dynar_t dimensions) namespace simgrid { namespace kernel { namespace routing { - AsClusterTorus::AsClusterTorus(const char*name) - : AsCluster(name) { + AsClusterTorus::AsClusterTorus(As* father, const char* name) : AsCluster(father, name) + { } AsClusterTorus::~AsClusterTorus() { xbt_dynar_free(&dimensions_); @@ -78,7 +78,7 @@ namespace simgrid { * note that position rankId*(xbt_dynar_length(dimensions)+has_loopack?+has_limiter?) * holds the link "rankId->rankId" */ - privateLinks_.insert(privateLinks_.begin() + position + j, info); + privateLinks_.insert({position + j, info}); dim_product *= current_dimension; xbt_free(link_id); } @@ -122,7 +122,7 @@ namespace simgrid { route->link_list->push_back(info.linkUp); if (lat) - *lat += info.linkUp->getLatency(); + *lat += info.linkUp->latency(); return; } @@ -132,8 +132,8 @@ namespace simgrid { * TODO Change to dynamic assignment */ unsigned int j, cur_dim, dim_product = 1; - int current_node = src->id(); - int unsigned next_node = 0; + unsigned int current_node = src->id(); + unsigned int next_node = 0; /* * Arrays that hold the coordinates of the current node and * the target; comparing the values at the i-th position of @@ -209,11 +209,11 @@ namespace simgrid { if (use_lnk_up == false) { route->link_list->push_back(info.linkDown); if (lat) - *lat += info.linkDown->getLatency(); + *lat += info.linkDown->latency(); } else { route->link_list->push_back(info.linkUp); if (lat) - *lat += info.linkUp->getLatency(); + *lat += info.linkUp->latency(); } current_node = next_node; next_node = 0;