]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/surf_config.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a bunch of links to the FAQ -- hate that code dupplication
[simgrid.git] / src / surf / surf_config.c
index f4f938a1af706535bad6502e55ee1ddf60d47832..debb76760970e9a45ed60a3ac62d08328f301259 100644 (file)
@@ -257,6 +257,7 @@ static void _surf_cfg_cb_context_factory(const char *name, int pos) {
 
 static void _surf_cfg_cb_context_stack_size(const char *name, int pos)
 {
+  smx_context_stack_size_was_set = 1;
   smx_context_stack_size = xbt_cfg_get_int(_surf_cfg_set, name) * 1024;
 }
 
@@ -443,7 +444,7 @@ void surf_config_init(int *argc, char **argv)
                      "Size of the biggest TCP window (cat /proc/sys/net/ipv4/tcp_[rw]mem for recv/send window; Use the last given value, which is the max window size)",
                      xbt_cfgelm_double, NULL, 1, 1,
                      _surf_cfg_cb__tcp_gamma, NULL);
-    xbt_cfg_setdefault_double(_surf_cfg_set, "network/TCP_gamma", 20000.0);
+    xbt_cfg_setdefault_double(_surf_cfg_set, "network/TCP_gamma", 4194304.0);
 
     xbt_cfg_register(&_surf_cfg_set, "maxmin/precision",
                      "Numerical precision used when updating simulation models (epsilon in double comparisons)",
@@ -535,12 +536,12 @@ void surf_config_init(int *argc, char **argv)
                      _mc_cfg_cb_max_depth, NULL);
     xbt_cfg_setdefault_int(_surf_cfg_set, "model-check/max_depth", 1000);
 
-    /* Set number of visited state stored in stateful mode */
-    xbt_cfg_register(&_surf_cfg_set, "model-check/stateful",
-                     "Specify the number of visited state stored in stateful mode. If value=5, the last 5 visited states are stored",
+    /* Set number of visited state stored for state comparison reduction*/
+    xbt_cfg_register(&_surf_cfg_set, "model-check/visited",
+                     "Specify the number of visited state stored for state comparison reduction. If value=5, the last 5 visited states are stored",
                      xbt_cfgelm_int, NULL, 0, 1,
-                     _mc_cfg_cb_stateful, NULL);
-    xbt_cfg_setdefault_int(_surf_cfg_set, "model-check/stateful", 0);
+                     _mc_cfg_cb_visited, NULL);
+    xbt_cfg_setdefault_int(_surf_cfg_set, "model-check/visited", 0);
 #endif
 
     /* do verbose-exit */