From: navarrop Date: Thu, 24 Feb 2011 14:32:18 +0000 (+0000) Subject: We must set host_coordinates to "" with bypass. X-Git-Tag: v3.6_beta2~229 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5b8c8b4b86dfc284e8ac3a1bf42b921cbb97b4df 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 --- 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);