From f07a897266fd95e62456a18bd6ca0c4644f07af4 Mon Sep 17 00:00:00 2001 From: velho Date: Thu, 18 Nov 2010 17:12:53 +0000 Subject: [PATCH] Bug fix. This is a backroute! git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8579 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/surf/network.c b/src/surf/network.c index 51a46e1378..4a8e357c7e 100644 --- a/src/surf/network.c +++ b/src/surf/network.c @@ -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 */ - 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 route = global_routing->get_route(src_name, dst_name); 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: -- 2.20.1