X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eb570ec90c7f03bf8bd89e52f9f1ff97fb86c788..c46aba70aa4ccf22cc19fac31d451c7158e922dd:/src/simgrid/sg_config.c diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index f857766722..187e8aea8d 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2010, 2012-2014. The SimGrid Team. +/* Copyright (c) 2009-2010, 2012-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -18,12 +18,17 @@ #include "instr/instr_interface.h" #include "simgrid/simix.h" #include "simgrid/sg_config.h" +#include "simgrid_config.h" /* what was compiled in? */ +#ifdef HAVE_SMPI #include "smpi/smpi_interface.h" +#endif #include "mc/mc.h" -#include "instr/instr.h" +#include "src/mc/mc_record.h" +#include "simgrid/instr.h" +#include "src/mc/mc_replay.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_config, surf, - "About the configuration of simgrid"); + "About the configuration of SimGrid"); xbt_cfg_t _sg_cfg_set = NULL; @@ -35,8 +40,7 @@ xbt_cfg_t _sg_cfg_set = NULL; */ int _sg_cfg_init_status = 0; -/* instruct the upper layer (simix or simdag) to exit as soon as possible - */ +/* instruct the upper layer (simix or simdag) to exit as soon as possible */ int _sg_cfg_exit_asap = 0; #define sg_cfg_exit_early() do { _sg_cfg_exit_asap = 1; return; } while (0) @@ -59,31 +63,32 @@ static void sg_config_cmd_line(int *argc, char **argv) printf("%s\n", SIMGRID_VERSION_STRING); shall_exit = 1; } else if (!strcmp(argv[i], "--cfg-help") || !strcmp(argv[i], "--help")) { - printf - ("Description of the configuration accepted by this simulator:\n"); + printf("Description of the configuration accepted by this simulator:\n"); xbt_cfg_help(_sg_cfg_set); printf( -"\n" -"Each of these configurations can be used by adding\n" -" --cfg=