simgrid::config::set_default<double>("network/weight-S", 8775);
}
-namespace simgrid {
-namespace kernel {
-namespace resource {
+namespace simgrid::kernel::resource {
void NetworkIBModel::IB_create_host_callback(s4u::Host const& host)
{
to->active_comms_down_[from] -= 1;
to->nb_active_comms_down_--;
- auto it = std::find_if(begin(from->active_comms_up_), end(from->active_comms_up_),
- [action](const ActiveComm* comm) { return comm->action == action; });
- if (it != std::end(from->active_comms_up_)) {
+ if (auto it = std::find_if(begin(from->active_comms_up_), end(from->active_comms_up_),
+ [action](const ActiveComm* comm) { return comm->action == action; });
+ it != std::end(from->active_comms_up_)) {
delete *it;
from->active_comms_up_.erase(it);
}
update_IB_factors_rec(from, updated);
XBT_DEBUG("IB - Finished updating %d", from->id_);
}
-} // namespace resource
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::resource