From: navarro Date: Mon, 12 Mar 2012 10:34:37 +0000 (+0100) Subject: Don't try to push loopback if not defined. X-Git-Tag: v3_7~311^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b0f7927d573530efadfea316cc87988761648a35?ds=sidebyside Don't try to push loopback if not defined. --- diff --git a/src/surf/surf_routing_floyd.c b/src/surf/surf_routing_floyd.c index 4d71a2273d..b7a60a5aea 100644 --- a/src/surf/surf_routing_floyd.c +++ b/src/surf/surf_routing_floyd.c @@ -200,7 +200,7 @@ void model_floyd_end(AS_t current_routing) } /* Add the loopback if needed */ - if (current_routing->hierarchy == SURF_ROUTING_BASE) { + if (global_routing->loopback && current_routing->hierarchy == SURF_ROUTING_BASE) { for (i = 0; i < table_size; i++) { route_t e_route = TO_FLOYD_LINK(i, i); if (!e_route) { diff --git a/src/surf/surf_routing_full.c b/src/surf/surf_routing_full.c index c4a4c9f4d6..c752582851 100644 --- a/src/surf/surf_routing_full.c +++ b/src/surf/surf_routing_full.c @@ -138,7 +138,7 @@ void model_full_end(AS_t current_routing) routing->routing_table = xbt_new0(route_t, table_size * table_size); /* Add the loopback if needed */ - if (current_routing->hierarchy == SURF_ROUTING_BASE) { + if (global_routing->loopback && current_routing->hierarchy == SURF_ROUTING_BASE) { for (i = 0; i < table_size; i++) { e_route = TO_ROUTE_FULL(i, i); if (!e_route) {