"no");
simgrid::config::alias("network/maxmin-selective-update", {"network/maxmin_selective_update"});
- extern bool _sg_do_verbose_exit;
- simgrid::config::bind_flag(_sg_do_verbose_exit, "verbose-exit", "Activate the \"do nothing\" mode in Ctrl-C");
-
simgrid::config::declare_flag<int>("contexts/stack-size", "Stack size of contexts in KiB (not with threads)",
8 * 1024, [](int value) { smx_context_stack_size = value * 1024; });
simgrid::config::alias("contexts/stack-size", {"contexts/stack_size"});
#if HAVE_SMPI
simgrid::config::declare_flag<double>("smpi/host-speed", "Speed of the host running the simulation (in flop/s). "
"Used to bench the operations.",
- 20000.0);
+ 20000.0, [](const double& val) {
+ xbt_assert(val > 0.0, "Invalid value (%f) for 'smpi/host-speed': it must be positive.", val);
+ });
simgrid::config::alias("smpi/host-speed", {"smpi/running_power", "smpi/running-power"});
simgrid::config::declare_flag<bool>("smpi/keep-temps", "Whether we should keep the generated temporary files.",
simgrid::config::declare_flag<bool>(
"exception/cutpath", "Whether to cut all path information from call traces, used e.g. in exceptions.", false);
- extern bool _sg_do_clean_atexit;
- simgrid::config::bind_flag(_sg_do_clean_atexit, "clean-atexit", {"clean_atexit"},
- "Whether to cleanup SimGrid at exit. Disable it if your code segfaults after its end.");
-
if (surf_path.empty())
simgrid::config::set_default<std::string>("path", "./");