- char *optim = xbt_cfg_get_string(_sg_cfg_set, "cpu/optim");
- int select = xbt_cfg_get_boolean(_sg_cfg_set, "cpu/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, "cpu/maxmin_selective_update")),
+ char *optim = xbt_cfg_get_string("cpu/optim");
+ bool select = xbt_cfg_get_boolean("cpu/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("cpu/maxmin-selective-update")),