X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73cac04c5ce217e495a7584c98a6dbd940552e9c..8d32c7ffa94dd5e1fc62a06ddab007a7b3f711e3:/src/surf/surf_routing_dijkstra.c diff --git a/src/surf/surf_routing_dijkstra.c b/src/surf/surf_routing_dijkstra.c index ab9e58ff2c..60e055bed0 100644 --- a/src/surf/surf_routing_dijkstra.c +++ b/src/surf/surf_routing_dijkstra.c @@ -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);