Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a platform with a bypass route. Add the test to cmake.
[simgrid.git] / teshsuite / simdag / platforms / flatifier.c
index 7e7bb7f..5695df8 100644 (file)
@@ -133,11 +133,11 @@ int main(int argc, char **argv)
   {
                  xbt_lib_foreach(host_lib, cursor_dst, dst, value) //to host
                  {
-                               printf("  <route src=\"%s\" dst=\"%s\">\n       "
+                               printf("  <route src=\"%s\" dst=\"%s\">\n  "
                                          ,src
                                          ,dst);
-                               xbt_dynar_t route;
-                               routing_get_route_and_latency(src,dst,&route,NULL,1);
+                               xbt_dynar_t route=NULL;
+                               routing_get_route_and_latency(src,dst,&route,NULL);
                                for(i=0;i<xbt_dynar_length(route) ;i++)
                                {
                                        void *link = xbt_dynar_get_as(route,i,void *);
@@ -151,11 +151,11 @@ int main(int argc, char **argv)
                  xbt_lib_foreach(as_router_lib, cursor_dst, dst, value) //to router
                  {
                            if(routing_get_network_element_type(dst) == SURF_NETWORK_ELEMENT_ROUTER){
-                               printf("  <route src=\"%s\" dst=\"%s\">\n       "
+                               printf("  <route src=\"%s\" dst=\"%s\">\n  "
                                          ,src
                                          ,dst);
-                               xbt_dynar_t route;
-                               routing_get_route_and_latency(src,dst,&route,NULL,1);
+                               xbt_dynar_t route=NULL;
+                               routing_get_route_and_latency(src,dst,&route,NULL);
                                for(i=0;i<xbt_dynar_length(route) ;i++)
                                {
                                        void *link = xbt_dynar_get_as(route,i,void *);
@@ -175,11 +175,11 @@ int main(int argc, char **argv)
                  xbt_lib_foreach(as_router_lib, cursor_dst, dst, value) //to router
                  {
                                if(routing_get_network_element_type(dst) == SURF_NETWORK_ELEMENT_ROUTER){
-                               printf("  <route src=\"%s\" dst=\"%s\">\n       "
+                               printf("  <route src=\"%s\" dst=\"%s\">\n  "
                                          ,src
                                          ,dst);
-                               xbt_dynar_t route;
-                               routing_get_route_and_latency(src,dst,&route,NULL,1);
+                               xbt_dynar_t route=NULL;
+                               routing_get_route_and_latency(src,dst,&route,NULL);
                                for(i=0;i<xbt_dynar_length(route) ;i++)
                                {
                                        void *link = xbt_dynar_get_as(route,i,void *);
@@ -193,10 +193,10 @@ int main(int argc, char **argv)
                  }
                  xbt_lib_foreach(host_lib, cursor_dst, dst, value) //to host
                  {
-                               printf("  <route src=\"%s\" dst=\"%s\">\n       "
+                               printf("  <route src=\"%s\" dst=\"%s\">\n  "
                                          ,src, dst);
-                               xbt_dynar_t route;
-                               routing_get_route_and_latency(src,dst,&route, NULL,1);
+                               xbt_dynar_t route=NULL;
+                               routing_get_route_and_latency(src,dst,&route, NULL);
                                for(i=0;i<xbt_dynar_length(route) ;i++)
                                {
                                        void *link = xbt_dynar_get_as(route,i,void *);