X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78d028b6abfd9ae331fddb2123c3491869867649..16a4f8966d6b4aff3c7bb22c03be71b968e73a7e:/src/surf/cpu_cas01.cpp diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index 5c6f2dceb7..de2b88e90a 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -42,17 +42,16 @@ CpuCas01Model::CpuCas01Model() : simgrid::surf::CpuModel() if (optim == "Full") { setUpdateMechanism(UM_FULL); - selectiveUpdate_ = select; } else if (optim == "Lazy") { setUpdateMechanism(UM_LAZY); - selectiveUpdate_ = true; + select = true; xbt_assert(select || (xbt_cfg_is_default_value("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.c_str()); } - maxminSystem_ = new simgrid::kernel::lmm::System(selectiveUpdate_); + maxminSystem_ = new simgrid::kernel::lmm::System(select); if (getUpdateMechanism() == UM_LAZY) { modifiedSet_ = new kernel::resource::ActionLmmList();