X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/df84a8d7f46571fdc9349b6fb17d5575c8a8b31e..294ddfafa470aa45f7c5f40f0d92c79a5f2075e2:/src/simgrid/sg_config.c diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index 04554824e9..054272ae94 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -18,16 +18,16 @@ #include "instr/instr_interface.h" #include "simgrid/simix.h" #include "simgrid/sg_config.h" -#ifdef HAVE_SMPI +#include "simgrid_config.h" /* what was compiled in? */ +#if HAVE_SMPI #include "smpi/smpi_interface.h" #endif #include "mc/mc.h" -#include "mc/mc_record.h" +#include "src/mc/mc_record.h" #include "simgrid/instr.h" -#include "mc/mc_replay.h" +#include "src/mc/mc_replay.h" -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_config, surf, - "About the configuration of simgrid"); +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_config, surf, "About the configuration of SimGrid"); xbt_cfg_t _sg_cfg_set = NULL; @@ -39,8 +39,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) @@ -63,25 +62,28 @@ 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=