Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make a function to know if the configuration is set by default or by command line.
[simgrid.git] / src / surf / surf_routing.c
index b053b28..c3f9e79 100644 (file)
@@ -3251,14 +3251,12 @@ static void routing_parse_Sconfig(void)
 static void routing_parse_Econfig(void)
 {
   xbt_dict_cursor_t cursor = NULL;
-  xbt_cfgelm_t variable;
   char *key;
   char *elem;
   char *cfg;
   xbt_dict_foreach(current_property_set, cursor, key, elem) {
          cfg = bprintf("%s:%s",key,elem);
-         variable = xbt_cfgelm_get(_surf_cfg_set, key, xbt_cfgelm_any);
-         if(variable->isdefault)
+         if(xbt_cfg_is_default_value(_surf_cfg_set, key))
                  xbt_cfg_set_parse(_surf_cfg_set, cfg);
          else
                  INFO1("The custom configuration '%s' is already define by user!",key);