From 13c5da75068f441142fcf93d4d78124a7885d116 Mon Sep 17 00:00:00 2001 From: velho Date: Tue, 25 Nov 2008 16:18:10 +0000 Subject: [PATCH] Bug fix. add_onehop_route registers links in the Kayo topology (not the GTNets objects). add_route creates the gtnets objects if not done yet and set up the routing at the GTNets level. So route_new should be called even for 1 links routes... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6095 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/network_gtnets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/network_gtnets.c b/src/surf/network_gtnets.c index 9ee7c9ca5d..00ea4a9878 100644 --- a/src/surf/network_gtnets.c +++ b/src/surf/network_gtnets.c @@ -286,7 +286,7 @@ static void add_route() RETHROW1("Link %s not found (dict raised this exception: %s)", link); } } - if (nb_link > 1) + if (nb_link >= 1) route_new(src_id, dst_id, link_list, nb_link); } -- 2.20.1