xbt_die("Setting of whether to use coordinate cannot be disabled once set.");
}
+static void _sg_cfg_cb_surf_nthreads(const char *name, int pos)
+{
+ surf_set_nthreads(xbt_cfg_get_int(_sg_cfg_set, name));
+}
+
static void _sg_cfg_cb__surf_network_crosstraffic(const char *name,
int pos)
{
xbt_cfg_setdefault_string(_sg_cfg_set, "contexts/synchro", "busy_wait");
#endif
+ /* number of parallel threads for Surf */
+ xbt_cfg_register(&_sg_cfg_set, "surf/nthreads",
+ "Number of parallel threads used to update Surf models",
+ xbt_cfgelm_int, NULL, 1, 1,
+ _sg_cfg_cb_surf_nthreads, NULL);
+ xbt_cfg_setdefault_int(_sg_cfg_set, "surf/nthreads", surf_get_nthreads());
+
xbt_cfg_register(&_sg_cfg_set, "network/coordinates",
"\"yes\" or \"no\", specifying whether we use a coordinate-based routing (as Vivaldi)",
xbt_cfgelm_boolean, 1, 1, _sg_cfg_cb__surf_network_coordinates, NULL);