Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanup in the Link field names
[simgrid.git] / src / kernel / routing / AsClusterTorus.cpp
index 70f2549..3aaa111 100644 (file)
@@ -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;
       }
 
@@ -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;