Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
proper initilization of the model-check option
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 9 Aug 2010 15:51:26 +0000 (15:51 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 9 Aug 2010 15:51:26 +0000 (15:51 +0000)
details:
- arnaud's modification

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8144 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/surf_config.c

index b1cc745..aa93aae 100644 (file)
@@ -264,6 +264,7 @@ void surf_config_init(int *argc, char **argv)
     xbt_cfg_register(&_surf_cfg_set, "model-check",
                      "Activate the model-checking of the \"simulated\" system (EXPERIMENTAL -- msg only for now)",
                      xbt_cfgelm_int, &default_value_int, 0, 1, _surf_cfg_cb_model_check, NULL);
     xbt_cfg_register(&_surf_cfg_set, "model-check",
                      "Activate the model-checking of the \"simulated\" system (EXPERIMENTAL -- msg only for now)",
                      xbt_cfgelm_int, &default_value_int, 0, 1, _surf_cfg_cb_model_check, NULL);
+    xbt_cfg_set_int(_surf_cfg_set, "model-check", default_value_int);
 
     default_value_int = 0;
     xbt_cfg_register(&_surf_cfg_set, "fullduplex",
 
     default_value_int = 0;
     xbt_cfg_register(&_surf_cfg_set, "fullduplex",