- char *optim = xbt_cfg_get_string(_sg_cfg_set, "network/optim");
- int select = xbt_cfg_get_boolean(_sg_cfg_set, "network/maxmin_selective_update");
-
- if (!strcmp(optim, "Full")) {
- p_updateMechanism = UM_FULL;
- m_selectiveUpdate = select;
- } else if (!strcmp(optim, "Lazy")) {
- p_updateMechanism = UM_LAZY;
- m_selectiveUpdate = 1;
- xbt_assert((select == 1) || (xbt_cfg_is_default_value(_sg_cfg_set, "network/maxmin_selective_update")),
- "Disabling selective update while using the lazy update mechanism is dumb!");
+ char *optim = xbt_cfg_get_string("network/optim");
+ bool select = xbt_cfg_get_boolean("network/maxmin-selective-update");
+
+ if (not strcmp(optim, "Full")) {
+ updateMechanism_ = UM_FULL;
+ selectiveUpdate_ = select;
+ } else if (not strcmp(optim, "Lazy")) {
+ updateMechanism_ = UM_LAZY;
+ selectiveUpdate_ = true;
+ xbt_assert(select || (xbt_cfg_is_default_value("network/maxmin-selective-update")),
+ "You cannot disable selective update when using the lazy update mechanism");