X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73cac04c5ce217e495a7584c98a6dbd940552e9c..10beade7f2e5b5b7f318c3847602cc1ddbf09c99:/src/surf/surf_routing_floyd.c diff --git a/src/surf/surf_routing_floyd.c b/src/surf/surf_routing_floyd.c index 80856c51ed..e744b8670e 100644 --- a/src/surf/surf_routing_floyd.c +++ b/src/surf/surf_routing_floyd.c @@ -95,8 +95,7 @@ static route_extended_t floyd_get_route(routing_component_t rc, int first = 1; int pred = *dst_id; int prev_pred = 0; - char *gw_src = NULL, *gw_dst = - NULL, *prev_gw_src, *prev_gw_dst, *first_gw = NULL; + char *gw_src = NULL, *gw_dst = NULL, *prev_gw_src, *first_gw = NULL; unsigned int cpt; void *link; xbt_dynar_t links; @@ -111,7 +110,6 @@ static route_extended_t floyd_get_route(routing_component_t rc, dst); prev_gw_src = gw_src; - prev_gw_dst = gw_dst; route_extended_t e_route = TO_FLOYD_LINK(pred, prev_pred); gw_src = e_route->src_gateway; @@ -286,6 +284,9 @@ void model_floyd_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); + if(!routing->link_table) { /* Create Cost, Predecessor and Link tables */