A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename the coordinates configuration option to network/coordinates, and document it
[simgrid.git]
/
src
/
surf
/
surf_config.c
diff --git
a/src/surf/surf_config.c
b/src/surf/surf_config.c
index 0e7a6b1cbbb6b765603f85005992e51f5d19df03..db5e5d73d072a38ebff4326ca0491f599120e357 100644
(file)
--- a/
src/surf/surf_config.c
+++ b/
src/surf/surf_config.c
@@
-263,9
+263,9
@@
static void _surf_cfg_cb__surf_network_coordinates(const char *name,
}
} else if (!strcmp(val, "no")) {
if (COORD_HOST_LEVEL)
}
} else if (!strcmp(val, "no")) {
if (COORD_HOST_LEVEL)
-
XBT_WARN
("Setting of whether to use coordinate cannot be disabled once set.");
+
xbt_die
("Setting of whether to use coordinate cannot be disabled once set.");
} else {
} else {
-
XBT_WARN
("Command line setting of whether to use coordinates must be either \"yes\" or \"no\"");
+
xbt_die
("Command line setting of whether to use coordinates must be either \"yes\" or \"no\"");
}
}
}
}
@@
-487,11
+487,11
@@
void surf_config_init(int *argc, char **argv)
_surf_cfg_cb_contexts_parallel_mode, NULL);
default_value = xbt_strdup("no");
_surf_cfg_cb_contexts_parallel_mode, NULL);
default_value = xbt_strdup("no");
- xbt_cfg_register(&_surf_cfg_set, "coordinates",
- "\"yes\" or \"no\"
(FIXME: document
)",
+ xbt_cfg_register(&_surf_cfg_set, "
network/
coordinates",
+ "\"yes\" or \"no\"
, specifying whether we use a coordinate-based routing (as Vivaldi
)",
xbt_cfgelm_string, &default_value, 1, 1,
_surf_cfg_cb__surf_network_coordinates, NULL);
xbt_cfgelm_string, &default_value, 1, 1,
_surf_cfg_cb__surf_network_coordinates, NULL);
- xbt_cfg_setdefault_string(_surf_cfg_set, "coordinates", default_value);
+ xbt_cfg_setdefault_string(_surf_cfg_set, "
network/
coordinates", default_value);
default_value_int = 0;
xbt_cfg_register(&_surf_cfg_set, "network/crosstraffic",
default_value_int = 0;
xbt_cfg_register(&_surf_cfg_set, "network/crosstraffic",