Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug fix.
authorvelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 25 Nov 2008 16:18:10 +0000 (16:18 +0000)
committervelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 25 Nov 2008 16:18:10 +0000 (16:18 +0000)
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

index 9ee7c9c..00ea4a9 100644 (file)
@@ -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);
    }