X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a39156bd62af67f2073bd567b4ec2dafeb8a2c28..5c64d08d30a940a53f16f70509a6821b0f94ad8e:/src/surf/cpu_cas01.cpp diff --git a/src/surf/cpu_cas01.cpp b/src/surf/cpu_cas01.cpp index 69a16b3b37..ac8de2f769 100644 --- a/src/surf/cpu_cas01.cpp +++ b/src/surf/cpu_cas01.cpp @@ -108,7 +108,7 @@ void CpuCas01::onSpeedChange() { model()->getMaxminSystem()->update_constraint_bound(constraint(), coresAmount_ * speed_.scale * speed_.peak); while ((var = constraint()->get_variable(&elem))) { - CpuCas01Action* action = static_cast(lmm_variable_id(var)); + CpuCas01Action* action = static_cast(var->get_id()); model()->getMaxminSystem()->update_variable_bound(action->getVariable(), action->requestedCore() * speed_.scale * speed_.peak); @@ -144,7 +144,7 @@ void CpuCas01::apply_event(tmgr_trace_event_t event, double value) turnOff(); while ((var = cnst->get_variable(&elem))) { - Action *action = static_cast(lmm_variable_id(var)); + Action* action = static_cast(var->get_id()); if (action->getState() == Action::State::running || action->getState() == Action::State::ready ||