From 5b8c8b4b86dfc284e8ac3a1bf42b921cbb97b4df Mon Sep 17 00:00:00 2001 From: navarrop Date: Thu, 24 Feb 2011 14:32:18 +0000 Subject: [PATCH] We must set host_coordinates to "" with bypass. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9717 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/surf_routing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 92a2675489..f1a26237fb 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -232,7 +232,6 @@ static void parse_S_host(const char *host_id, const char* coord) info->rc_type = SURF_NETWORK_ELEMENT_HOST; xbt_dict_set(global_routing->where_network_elements, host_id, (void *) info, xbt_free); - if (strcmp(coord,"")) { xbt_dynar_t ctn = xbt_str_split_str(coord, " "); xbt_dynar_shrink(ctn, 0); @@ -3394,6 +3393,7 @@ static void routing_parse_Scluster(void) SURFXML_BUFFER_SET(host_power, temp_cluster_power); SURFXML_BUFFER_SET(host_core, cluster_core); SURFXML_BUFFER_SET(host_availability, "1.0"); + SURFXML_BUFFER_SET(host_coordinates, ""); xbt_free(availability_file); availability_file = bprintf("%s",cluster_availability_file); xbt_free(state_file); @@ -3454,6 +3454,7 @@ static void routing_parse_Scluster(void) SURFXML_BUFFER_SET(host_power, temp_cluster_power); SURFXML_BUFFER_SET(host_core, cluster_core); SURFXML_BUFFER_SET(host_availability, "1.0"); + SURFXML_BUFFER_SET(host_coordinates, ""); xbt_free(availability_file); availability_file = bprintf("%s",cluster_availability_file); xbt_free(state_file); @@ -3783,6 +3784,7 @@ static void routing_parse_Speer(void) SURFXML_BUFFER_SET(host_availability, "1.0"); SURFXML_BUFFER_SET(host_availability_file, peer_availability_file); SURFXML_BUFFER_SET(host_state_file, peer_state_file); + SURFXML_BUFFER_SET(host_coordinates, ""); SURFXML_START_TAG(host); SURFXML_END_TAG(host); -- 2.20.1