Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug fix. This is a backroute!
authorvelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 18 Nov 2010 17:12:53 +0000 (17:12 +0000)
committervelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 18 Nov 2010 17:12:53 +0000 (17:12 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8579 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/network.c

index 51a46e1..4a8e357 100644 (file)
@@ -537,12 +537,12 @@ static surf_action_t net_communicate(const char *src_name,
      Add a link_CM02_t *link and a int link_nb to network_card_CM02_t. It will represent local links for this node
      Use the cluster_id for ->id */
 
      Add a link_CM02_t *link and a int link_nb to network_card_CM02_t. It will represent local links for this node
      Use the cluster_id for ->id */
 
-  xbt_dynar_t route = global_routing->get_route(src_name, dst_name);
   xbt_dynar_t back_route = NULL;
   int constraints_per_variable = 0;
   xbt_dynar_t back_route = NULL;
   int constraints_per_variable = 0;
+  xbt_dynar_t route = global_routing->get_route(src_name, dst_name);
 
   if (sg_network_fullduplex == 1) {
 
   if (sg_network_fullduplex == 1) {
-    back_route = global_routing->get_route(src_name, dst_name);
+    back_route = global_routing->get_route(dst_name, src_name);
   }
 
   /* LARGE PLATFORMS HACK:
   }
 
   /* LARGE PLATFORMS HACK: