+ if (!strcmp(optim, "Full")) {
+ surf_cpu_model->update_mechanism = UM_FULL;
+ surf_cpu_model->selective_update = select;
+ } else if (!strcmp(optim, "Lazy")) {
+ surf_cpu_model->update_mechanism = UM_LAZY;
+ surf_cpu_model->selective_update = 1;
+ xbt_assert((select == 1)
+ ||
+ (xbt_cfg_is_default_value
+ (_surf_cfg_set, "cpu/maxmin_selective_update")),
+ "Disabling selective update while using the lazy update mechanism is dumb!");
+ } else {
+ xbt_die("Unsupported optimization (%s) for this model", optim);
+ }
+