X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e1e1ef3fe28de3204d1c6d60e89f8b2ae0cbb50..b3685de3f6639ce25de105539ef95dd5b753ccae:/src/smpi/smpi_global.cpp?ds=inline diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index 2e95353a5e..0236f67606 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -436,6 +436,10 @@ static void smpi_check_options(){ "Use the option \"--cfg=smpi/running-power:\" to set its value." "Check http://simgrid.org/simgrid/latest/doc/options.html#options_smpi_bench for more information."); } + + xbt_assert(xbt_cfg_get_double("smpi/cpu-threshold") >=0, + "The 'smpi/cpu-threshold' option cannot have negative values [anymore]. If you want to discard " + "the simulation of any computation, please use 'smpi/simulate-computation:no' instead."); } int smpi_enabled() {