X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea2c8ccd0b9ec582382f5f546d4a7faf5e6ce0e4..598bcf2b304c5f1ae949aaa3fd9676886961f39f:/src/surf/surf_config.c diff --git a/src/surf/surf_config.c b/src/surf/surf_config.c index 0954084a99..617bffc175 100644 --- a/src/surf/surf_config.c +++ b/src/surf/surf_config.c @@ -247,7 +247,7 @@ static void _surf_cfg_cb_contexts_parallel_mode(const char *name, int pos) SIMIX_context_set_parallel_mode(XBT_PARMAP_BUSY_WAIT); } else { - XBT_WARN("Command line setting of the parallel synchronization mode should " + xbt_die("Command line setting of the parallel synchronization mode should " "be one of \"posix\", \"futex\" or \"busy_wait\""); } } @@ -486,7 +486,7 @@ void surf_config_init(int *argc, char **argv) _surf_cfg_cb_contexts_parallel_mode, NULL); /* number of parallel threads for Surf */ - default_value_int = 1; + default_value_int = surf_get_nthreads(); xbt_cfg_register(&_surf_cfg_set, "surf/nthreads", "Number of parallel threads used to update Surf models", xbt_cfgelm_int, &default_value_int, 1, 1,