From: navarrop Date: Tue, 28 Sep 2010 08:54:11 +0000 (+0000) Subject: Adapt masterslave_bypass to the brand new AS tag. X-Git-Tag: v3_5~553 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1a042c3771c14fdc9ec1a98ca60fc70ed933dc17 Adapt masterslave_bypass to the brand new AS tag. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8271 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/masterslave/masterslave_bypass.c b/examples/msg/masterslave/masterslave_bypass.c index 57d806a9ed..e953f1a99f 100644 --- a/examples/msg/masterslave/masterslave_bypass.c +++ b/examples/msg/masterslave/masterslave_bypass.c @@ -22,12 +22,16 @@ static int surf_parse_bypass_platform(void) /* allocating memory for the buffer, I think 2kB should be enough */ surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size); - /* */ + DEBUG0(""); SURFXML_BUFFER_SET(platform_version, "2"); - SURFXML_START_TAG(platform); -/* */ + DEBUG0(""); + SURFXML_BUFFER_SET(AS_id, "AS0"); + SURFXML_BUFFER_SET(AS_routing, "Full"); + SURFXML_START_TAG(AS); + + DEBUG0(""); SURFXML_BUFFER_SET(host_id, "host A"); SURFXML_BUFFER_SET(host_power, "100000000.00"); SURFXML_BUFFER_SET(host_availability, "1.0"); @@ -38,11 +42,10 @@ static int surf_parse_bypass_platform(void) SURFXML_BUFFER_SET(host_interference_recv, "1.0"); SURFXML_BUFFER_SET(host_interference_send_recv, "1.0"); SURFXML_BUFFER_SET(host_max_outgoing_rate, "-1.0"); - SURFXML_START_TAG(host); SURFXML_END_TAG(host); -/* */ + DEBUG0(""); SURFXML_BUFFER_SET(host_id, "host B"); SURFXML_BUFFER_SET(host_power, "100000000.00"); SURFXML_BUFFER_SET(host_availability, "1.0"); @@ -53,11 +56,10 @@ static int surf_parse_bypass_platform(void) SURFXML_BUFFER_SET(host_interference_recv, "1.0"); SURFXML_BUFFER_SET(host_interference_send_recv, "1.0"); SURFXML_BUFFER_SET(host_max_outgoing_rate, "-1.0"); - SURFXML_START_TAG(host); SURFXML_END_TAG(host); -/* */ + DEBUG0(""); SURFXML_BUFFER_SET(link_id, "LinkA"); SURFXML_BUFFER_SET(link_bandwidth, "10000000.0"); SURFXML_BUFFER_SET(link_bandwidth_file, ""); @@ -69,40 +71,20 @@ static int surf_parse_bypass_platform(void) SURFXML_START_TAG(link); SURFXML_END_TAG(link); -/* */ -// OLD THINGS COMMENTED -// SURFXML_BUFFER_SET(route_src, "host A"); -// SURFXML_BUFFER_SET(route_dst, "host B"); -// SURFXML_BUFFER_SET(route_impact_on_src, "0.0"); -// SURFXML_BUFFER_SET(route_impact_on_dst, "0.0"); -// SURFXML_BUFFER_SET(route_impact_on_src_with_other_recv, "0.0"); -// SURFXML_BUFFER_SET(route_impact_on_dst_with_other_send, "0.0"); - + DEBUG0(""); + SURFXML_BUFFER_SET(route_src, "host A"); + SURFXML_BUFFER_SET(route_dst, "host B"); SURFXML_START_TAG(route); - + DEBUG0(" "); SURFXML_BUFFER_SET(link_c_ctn_id, "LinkA"); SURFXML_START_TAG(link_c_ctn); SURFXML_END_TAG(link_c_ctn); - + DEBUG0(""); SURFXML_END_TAG(route); -/* */ -// OLD THINGS COMMENTED -// SURFXML_BUFFER_SET(route_src, "host B"); -// SURFXML_BUFFER_SET(route_dst, "host A"); -// SURFXML_BUFFER_SET(route_impact_on_src, "0.0"); -// SURFXML_BUFFER_SET(route_impact_on_dst, "0.0"); -// SURFXML_BUFFER_SET(route_impact_on_src_with_other_recv, "0.0"); -// SURFXML_BUFFER_SET(route_impact_on_dst_with_other_send, "0.0"); - - SURFXML_START_TAG(route); - - SURFXML_BUFFER_SET(link_c_ctn_id, "LinkA"); - SURFXML_START_TAG(link_c_ctn); - SURFXML_END_TAG(link_c_ctn); - - SURFXML_END_TAG(route); -/* */ + DEBUG0(""); + SURFXML_END_TAG(AS); + DEBUG0(""); SURFXML_END_TAG(platform); free(surfxml_bufferstack);