Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename simgrid::kernel::lmm::s_lmm_element_t -> Element.
[simgrid.git] / src / surf / network_cm02.cpp
index e7338e9..43bc60e 100644 (file)
@@ -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<NetworkCm02Action*>(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;