X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff25d0379ffdbee9ddbd8f0d1ab6931de25b420a..ec38e1b35a34ad8c6ce3e75506ea5bcd8d96e323:/src/surf/network_cm02.cpp?ds=sidebyside diff --git a/src/surf/network_cm02.cpp b/src/surf/network_cm02.cpp index e7338e9b5a..43bc60e70c 100644 --- a/src/surf/network_cm02.cpp +++ b/src/surf/network_cm02.cpp @@ -335,9 +335,9 @@ Action* NetworkCm02Model::communicate(s4u::Host* src, s4u::Host* dst, double siz 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(); @@ -379,9 +379,9 @@ void NetworkCm02Link::apply_event(tmgr_trace_event_t triggered, double value) 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))) { @@ -416,7 +416,7 @@ void NetworkCm02Link::setBandwidth(double value) 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(var->get_id()); action->weight_ += delta; @@ -432,7 +432,7 @@ void NetworkCm02Link::setLatency(double value) 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;