From eeb4174d79c75ead0f700ec3f8dba6568a1e1a69 Mon Sep 17 00:00:00 2001 From: SUTER Frederic Date: Fri, 2 Apr 2021 11:28:14 +0200 Subject: [PATCH] small simplifications and cleanups --- src/surf/network_constant.cpp | 6 +++--- src/surf/network_smpi.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/surf/network_constant.cpp b/src/surf/network_constant.cpp index 64a2492197..9dc68e879c 100644 --- a/src/surf/network_constant.cpp +++ b/src/surf/network_constant.cpp @@ -27,7 +27,7 @@ namespace kernel { namespace resource { LinkImpl* NetworkConstantModel::create_link(const std::string& name, const std::vector& /*bandwidth*/, - s4u::Link::SharingPolicy) + s4u::Link::SharingPolicy /*policy*/) { xbt_die("Refusing to create the link %s: there is no link in the Constant network model. " "Please remove any link from your platform (and switch to routing='None')", @@ -38,7 +38,7 @@ LinkImpl* NetworkConstantModel::create_link(const std::string& name, const std:: double NetworkConstantModel::next_occurring_event(double /*now*/) { double min = -1.0; - for (kernel::resource::Action const& action : *get_started_action_set()) { + for (Action const& action : *get_started_action_set()) { const auto& net_action = static_cast(action); if (net_action.latency_ > 0 && (min < 0 || net_action.latency_ < min)) min = net_action.latency_; @@ -68,7 +68,7 @@ void NetworkConstantModel::update_actions_state(double /*now*/, double delta) } } -Action* NetworkConstantModel::communicate(s4u::Host* src, s4u::Host* dst, double size, double) +Action* NetworkConstantModel::communicate(s4u::Host* src, s4u::Host* dst, double size, double /*rate*/) { auto* action = new NetworkConstantAction(this, *src, *dst, size, sg_latency_factor); diff --git a/src/surf/network_smpi.cpp b/src/surf/network_smpi.cpp index 0a2323dc2e..54772d2b74 100644 --- a/src/surf/network_smpi.cpp +++ b/src/surf/network_smpi.cpp @@ -47,7 +47,7 @@ double NetworkSmpiModel::get_bandwidth_factor(double size) { static std::vector smpi_bw_factor; if (smpi_bw_factor.empty()) - smpi_bw_factor = simgrid::smpi::utils::parse_factor(config::get_value("smpi/bw-factor")); + smpi_bw_factor = smpi::utils::parse_factor(config::get_value("smpi/bw-factor")); double current = 1.0; for (auto const& fact : smpi_bw_factor) { @@ -66,7 +66,7 @@ double NetworkSmpiModel::get_latency_factor(double size) { static std::vector smpi_lat_factor; if (smpi_lat_factor.empty()) - smpi_lat_factor = simgrid::smpi::utils::parse_factor(config::get_value("smpi/lat-factor")); + smpi_lat_factor = smpi::utils::parse_factor(config::get_value("smpi/lat-factor")); double current = 1.0; for (auto const& fact : smpi_lat_factor) { -- 2.20.1