Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deprecate xbt_cfg_set_<type>().
[simgrid.git] / src / surf / sg_platf.cpp
index 46081c4..a6fcca8 100644 (file)
@@ -509,7 +509,7 @@ static void surf_config_models_setup()
   if ((not xbt_cfg_is_default_value("network/model") || not xbt_cfg_is_default_value("cpu/model")) &&
       xbt_cfg_is_default_value("host/model")) {
     host_model_name = "compound";
-    xbt_cfg_set_string("host/model", host_model_name.c_str());
+    simgrid::config::set_value("host/model", host_model_name);
   }
 
   XBT_DEBUG("host model: %s", host_model_name.c_str());