X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4307a12c577a9af0a8e026aa3dea79ad14bbd4eb..8340b9ca34a27bc19136607105d3ec1fe15c91db:/src/surf/surf_config.c diff --git a/src/surf/surf_config.c b/src/surf/surf_config.c index b5d3589b7e..0b7da099cc 100644 --- a/src/surf/surf_config.c +++ b/src/surf/surf_config.c @@ -6,18 +6,26 @@ /* surf_config: configuration infrastructure for the simulation world */ +#include "xbt/misc.h" #include "xbt/config.h" #include "xbt/log.h" #include "xbt/str.h" #include "surf/surf_private.h" -#include "surf/surf_routing.h" /* COORD_HOST_LEVEL and COORD_ASR_LEVEL */ +#include "surf/surf_routing.h" /* COORD_HOST_LEVEL and COORD_ASR_LEVEL */ #include "simgrid/simix.h" +#include "mc/mc.h" /* configuration callbacks of model-checking */ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_config, surf, "About the configuration of surf (and the rest of the simulation)"); xbt_cfg_t _surf_cfg_set = NULL; +int _surf_init_status = 0; /* 0: beginning of time (config cannot be changed yet); + 1: initialized: cfg_set created (config can now be changed); + 2: configured: command line parsed and config part of platform file was integrated also, platform construction ongoing or done. + (Config cannot be changed anymore!) */ + + /* Parse the command line, looking for options */ static void surf_config_cmd_line(int *argc, char **argv) { @@ -38,6 +46,9 @@ static void surf_config_cmd_line(int *argc, char **argv) xbt_cfg_help(_surf_cfg_set); printf( "\n" +"Each of these configurations can be used by adding\n" +" --cfg=