Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove symetrical for symmetrical.
[simgrid.git] / examples / msg / masterslave / masterslave_bypass.c
index cd30465..d69052d 100644 (file)
@@ -23,7 +23,7 @@ static int surf_parse_bypass_platform(void)
   surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size);
 
   DEBUG0("<platform>");
-  SURFXML_BUFFER_SET(platform_version, "2");
+  SURFXML_BUFFER_SET(platform_version, "3");
   SURFXML_START_TAG(platform);
 
   DEBUG0("<AS>");
@@ -66,9 +66,11 @@ static int surf_parse_bypass_platform(void)
   DEBUG0("<route src=\"host A\" dst=\"host B\">");
   SURFXML_BUFFER_SET(route_src, "host A");
   SURFXML_BUFFER_SET(route_dst, "host B");
+  A_surfxml_route_symmetrical = A_surfxml_route_symmetrical_YES;
   SURFXML_START_TAG(route);
   DEBUG0("     <link:ctn id=\"LinkA\"/>");
   SURFXML_BUFFER_SET(link_ctn_id, "LinkA");
+  A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_NONE;
   SURFXML_START_TAG(link_ctn);
   SURFXML_END_TAG(link_ctn);
   DEBUG0("</route>");
@@ -93,7 +95,7 @@ static int surf_parse_bypass_application(void)
   surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size);
 
   /* <platform> */
-  SURFXML_BUFFER_SET(platform_version, "2");
+  SURFXML_BUFFER_SET(platform_version, "3");
 
   SURFXML_START_TAG(platform);
 
@@ -179,7 +181,8 @@ int master(int argc, char *argv[])
     for (i = 0; i < number_of_tasks; i++) {
       sprintf(sprintf_buffer, "Task_%d", i);
       todo[i] =
-        MSG_task_create(sprintf_buffer, task_comp_size, task_comm_size, NULL);
+          MSG_task_create(sprintf_buffer, task_comp_size, task_comm_size,
+                          NULL);
     }
   }
 
@@ -216,7 +219,7 @@ int master(int argc, char *argv[])
   }
 
   INFO0
-    ("All tasks have been dispatched. Let's tell everybody the computation is over.");
+      ("All tasks have been dispatched. Let's tell everybody the computation is over.");
   for (i = 0; i < slaves_count; i++)
     MSG_task_put(MSG_task_create("finalize", 0, 0, FINALIZE),
                  slaves[i], PORT_22);