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
Convert xbt_cfg_is_default_value -> simgrid::config::is_default.
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index
a6fcca8
..
3f290e7
100644
(file)
--- a/
src/surf/sg_platf.cpp
+++ b/
src/surf/sg_platf.cpp
@@
-506,8
+506,8
@@
static void surf_config_models_setup()
std::string storage_model_name = simgrid::config::get_value<std::string>("storage/model");
/* The compound host model is needed when using non-default net/cpu models */
std::string storage_model_name = simgrid::config::get_value<std::string>("storage/model");
/* The compound host model is needed when using non-default net/cpu models */
- if ((not
xbt_cfg_is_default_value("network/model") || not xbt_cfg_is_default_value
("cpu/model")) &&
-
xbt_cfg_is_default_value
("host/model")) {
+ if ((not
simgrid::config::is_default("network/model") || not simgrid::config::is_default
("cpu/model")) &&
+
simgrid::config::is_default
("host/model")) {
host_model_name = "compound";
simgrid::config::set_value("host/model", host_model_name);
}
host_model_name = "compound";
simgrid::config::set_value("host/model", host_model_name);
}