]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/routing/DijkstraZone.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move fucntion call out of xbt_assert.
[simgrid.git] / src / kernel / routing / DijkstraZone.cpp
index 2fa52db7724a63147d88332760f0521b69de0fa3..cebdab7000a8b887bf257761503b8969ce7e9ed8 100644 (file)
@@ -227,12 +227,10 @@ void DijkstraZone::add_route(NetPoint* src, NetPoint* dst, NetPoint* gw_src, Net
 {
   add_route_check_params(src, dst, gw_src, gw_dst, link_list, symmetrical);
 
-  new_edge(src->id(), dst->id(),
-           new_extended_route(hierarchy_, src, dst, gw_src, gw_dst, link_list, symmetrical, true));
+  new_edge(src->id(), dst->id(), new_extended_route(hierarchy_, gw_src, gw_dst, link_list, true));
 
-  if (symmetrical == true)
-    new_edge(dst->id(), src->id(),
-             new_extended_route(hierarchy_, dst, src, gw_dst, gw_src, link_list, symmetrical, false));
+  if (symmetrical)
+    new_edge(dst->id(), src->id(), new_extended_route(hierarchy_, gw_dst, gw_src, link_list, false));
 }
 
 void DijkstraZone::new_edge(int src_id, int dst_id, RouteCreationArgs* route)