X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bcee12262f157b5a931b52ff5f32855888c6202d..485a5ec02aa2f8c667ab99f1d556e1851a99cc07:/examples/simdag/metaxml/sd_meta.c diff --git a/examples/simdag/metaxml/sd_meta.c b/examples/simdag/metaxml/sd_meta.c index 6122aca9be..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,17 +18,18 @@ #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) { +int main(int argc, char **argv) +{ - const char * platform_file; - const SD_workstation_t *workstations; + const char *platform_file; + const SD_workstation_t *workstations; int ws_nr; - SD_workstation_t w1 = NULL; + SD_workstation_t w1 = NULL; SD_workstation_t w2 = NULL; const char *name1, *name2; - int i,j,k; + int i, j, k; /* initialisation of SD */ SD_init(&argc, argv); @@ -42,23 +50,25 @@ int main(int argc, char **argv) { workstations = SD_workstation_get_list(); ws_nr = SD_workstation_get_number(); - + /* Show routes between all workstation */ - - for (i=0; i