X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f1c4b3ead099df97f5dff00f22d5cbfbf3d32ec1..2a4a5b0fa144b31b632e83c9cd337b3efcf45487:/examples/amok/alnem/alnem_builder.c diff --git a/examples/amok/alnem/alnem_builder.c b/examples/amok/alnem/alnem_builder.c index 6a4b82501a..26341f1c16 100644 --- a/examples/amok/alnem/alnem_builder.c +++ b/examples/amok/alnem/alnem_builder.c @@ -1,9 +1,8 @@ -/* $Id$ */ - /* ALNeM builder. Take an interference matrix as argument, */ /* and reconstruct the corresponding graph itself */ -/* Copyright (c) 2003 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2005, 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. */ @@ -12,23 +11,25 @@ #include #include -#include /* alvin's graph toolbox (+ reconstruction algorithm) */ +#include /* alvin's graph toolbox (+ reconstruction algorithm) */ -int main(int argc,char *argv[]) { - TBX_Graph_t graph; /* a dummy graph containing all hosts */ +int main(int argc, char *argv[]) +{ + TBX_Graph_t graph; /* a dummy graph containing all hosts */ TBX_FIFO_t host_fifo; - TBX_InterfTable_t interf; /* the measured interferences */ - TBX_Graph_t builded_graph; /* the graph builded from the interferences */ + TBX_InterfTable_t interf; /* the measured interferences */ + TBX_Graph_t builded_graph; /* the graph builded from the interferences */ if (argc != 2) { - fprintf(stderr,"alnem_builder: USAGE:\n"); - fprintf(stderr," alnem_builder interference_file\n"); - exit (1); + fprintf(stderr, "alnem_builder: USAGE:\n"); + fprintf(stderr, " alnem_builder interference_file\n"); + exit(1); } - if (TBX_Graph_interferenceTableRead (argv[1],&graph,&interf,&host_fifo)) { - fprintf(stderr,"Can't read the interference data, aborting\n"); - exit (1); + if (TBX_Graph_interferenceTableRead + (argv[1], &graph, &interf, &host_fifo)) { + fprintf(stderr, "Can't read the interference data, aborting\n"); + exit(1); } builded_graph = TBX_Graph_exploreInterference(interf);