X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fcfe8a7146bbc845782f3f8730f7f4a60a7dd4e8..1c277fea0aed2cefb8ab1f53d911b565fafe4b3e:/examples/simdag/metaxml/sd_meta.c diff --git a/examples/simdag/metaxml/sd_meta.c b/examples/simdag/metaxml/sd_meta.c index 79d75321a3..0067eaa6e8 100644 --- a/examples/simdag/metaxml/sd_meta.c +++ b/examples/simdag/metaxml/sd_meta.c @@ -1,6 +1,13 @@ -/* - See examples/platforms/metaxml.xml and examples/platforms/metaxml_platform.xml files for examples on how to use the cluster, foreach, set, route:multi, trace and trace:connect tags +/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +/* See examples/platforms/metaxml.xml and examples/platforms/metaxml_platform.xml + for examples on how to use the cluster, foreach, set, route:multi, trace and trace:connect tags */ + #include #include #include "simdag/simdag.h" @@ -11,9 +18,19 @@ #include "xbt/time.h" XBT_LOG_NEW_DEFAULT_CATEGORY(sd_test, - "Logging specific to this SimDag example"); + "Logging specific to this SimDag example"); + +int main(int argc, char **argv) +{ + + const char *platform_file; + const SD_workstation_t *workstations; + int ws_nr; + SD_workstation_t w1 = NULL; + SD_workstation_t w2 = NULL; + const char *name1, *name2; + int i, j, k; -int main(int argc, char **argv) { /* initialisation of SD */ SD_init(&argc, argv); @@ -26,30 +43,32 @@ int main(int argc, char **argv) { } /* creation of the environment */ - const char * platform_file = argv[1]; + platform_file = argv[1]; SD_create_environment(platform_file); /* test the estimation functions */ - const SD_workstation_t *workstations = SD_workstation_get_list(); - int ws_nr = SD_workstation_get_number(); + workstations = SD_workstation_get_list(); + ws_nr = SD_workstation_get_number(); + - SD_workstation_t w1 = NULL; - SD_workstation_t w2 = NULL; - const char *name1, *name2; /* Show routes between all workstation */ - int i,j,k; - for (i=0; i