Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define get_route_latency.
[simgrid.git] / src / surf / surf_routing_dijkstra.c
index ab9e58f..60e055b 100644 (file)
@@ -500,6 +500,9 @@ void model_dijkstra_both_set_route (routing_component_t rc, const char *src,
        src_id = xbt_dict_get_or_null(rc->to_index, src);
        dst_id = xbt_dict_get_or_null(rc->to_index, dst);
 
+       xbt_assert(src_id, "Network elements %s not found", src);
+       xbt_assert(dst_id, "Network elements %s not found", dst);
+
     /* Create the topology graph */
        if(!routing->route_graph)
        routing->route_graph = xbt_graph_new_graph(1, NULL);