Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simplication and uniformization
[simgrid.git] / src / surf / network_cm02.cpp
index 47e16c9..45140ed 100644 (file)
@@ -4,6 +4,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include <algorithm>
+#include <numeric>
 
 #include "network_cm02.hpp"
 #include "simgrid/s4u/Host.hpp"
@@ -392,8 +393,8 @@ void NetworkCm02Link::setBandwidth(double value)
 
   get_model()->get_maxmin_system()->update_constraint_bound(get_constraint(),
                                                             sg_bandwidth_factor * (bandwidth_.peak * bandwidth_.scale));
-  TRACE_surf_link_set_bandwidth(surf_get_clock(), get_cname(),
-                                sg_bandwidth_factor * bandwidth_.peak * bandwidth_.scale);
+
+  LinkImpl::on_bandwidth_change();
 
   if (sg_weight_S_parameter > 0) {
     double delta = sg_weight_S_parameter / value - sg_weight_S_parameter / (bandwidth_.peak * bandwidth_.scale);