if (surf_network_model)
return;
- lmm_set_default_protocol_function(simgrid::kernel::lmm::func_reno_f, simgrid::kernel::lmm::func_reno_fp,
- simgrid::kernel::lmm::func_reno_fpi);
+ set_default_protocol_function(simgrid::kernel::lmm::func_reno_f, simgrid::kernel::lmm::func_reno_fp,
+ simgrid::kernel::lmm::func_reno_fpi);
xbt_cfg_setdefault_double("network/latency-factor", 13.01);
xbt_cfg_setdefault_double("network/bandwidth-factor", 0.97);
if (surf_network_model)
return;
- lmm_set_default_protocol_function(simgrid::kernel::lmm::func_reno2_f, simgrid::kernel::lmm::func_reno2_fp,
- simgrid::kernel::lmm::func_reno2_fpi);
+ set_default_protocol_function(simgrid::kernel::lmm::func_reno2_f, simgrid::kernel::lmm::func_reno2_fp,
+ simgrid::kernel::lmm::func_reno2_fpi);
xbt_cfg_setdefault_double("network/latency-factor", 13.01);
xbt_cfg_setdefault_double("network/bandwidth-factor", 0.97);
if (surf_network_model)
return;
- lmm_set_default_protocol_function(simgrid::kernel::lmm::func_vegas_f, simgrid::kernel::lmm::func_vegas_fp,
- simgrid::kernel::lmm::func_vegas_fpi);
+ set_default_protocol_function(simgrid::kernel::lmm::func_vegas_f, simgrid::kernel::lmm::func_vegas_fp,
+ simgrid::kernel::lmm::func_vegas_fpi);
xbt_cfg_setdefault_double("network/latency-factor", 13.01);
xbt_cfg_setdefault_double("network/bandwidth-factor", 0.97);
xbt_die("Unsupported optimization (%s) for this model. Accepted: Full, Lazy.", optim.c_str());
}
- maxminSystem_ = new simgrid::kernel::lmm::s_lmm_system_t(selectiveUpdate_);
+ maxminSystem_ = new simgrid::kernel::lmm::System(selectiveUpdate_);
loopback_ = NetworkCm02Model::createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE);
if (getUpdateMechanism() == UM_LAZY) {
maxminSystem_->keep_track = modifiedSet_;
}
}
-NetworkCm02Model::NetworkCm02Model(void (*specificSolveFun)(lmm_system_t self))
- : NetworkCm02Model()
+
+NetworkCm02Model::NetworkCm02Model(void (*specificSolveFun)(lmm_system_t self)) : NetworkCm02Model()
{
maxminSystem_->solve_fun = specificSolveFun;
}
for (auto const& link : back_route)
maxminSystem_->expand(link->constraint(), action->getVariable(), .05);
- //Change concurrency_share here, if you want that cross-traffic is included in the SURF concurrency
- //(You would also have to change lmm_element_concurrency())
- //lmm_variable_concurrency_share_set(action->getVariable(),2);
+ // Change concurrency_share here, if you want that cross-traffic is included in the SURF concurrency
+ // (You would also have to change simgrid::kernel::lmm::Element::get_concurrency())
+ // action->getVariable()->set_concurrency_share(2)
}
XBT_OUT();
if (value > 0)
turnOn();
else {
- lmm_variable_t var = nullptr;
+ lmm_variable_t var = nullptr;
const_lmm_element_t elem = nullptr;
- double now = surf_get_clock();
+ double now = surf_get_clock();
turnOff();
while ((var = constraint()->get_variable(&elem))) {
lmm_variable_t var;
const_lmm_element_t elem = nullptr;
const_lmm_element_t nextelem = nullptr;
- int numelem = 0;
+ int numelem = 0;
while ((var = constraint()->get_variable_safe(&elem, &nextelem, &numelem))) {
NetworkCm02Action* action = static_cast<NetworkCm02Action*>(var->get_id());
action->weight_ += delta;
lmm_variable_t var = nullptr;
const_lmm_element_t elem = nullptr;
const_lmm_element_t nextelem = nullptr;
- int numelem = 0;
+ int numelem = 0;
latency_.peak = value;