X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe06d3ceaa02056b708bb777ed9973df6744f776..7e25358c2182b71a87fcd4628c4b614826d9dd30:/src/surf/network_smpi.cpp diff --git a/src/surf/network_smpi.cpp b/src/surf/network_smpi.cpp index f220569a0a..f96bc1a406 100644 --- a/src/surf/network_smpi.cpp +++ b/src/surf/network_smpi.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -47,12 +47,10 @@ NetworkSmpiModel::NetworkSmpiModel() : NetworkCm02Model() /* Do not add this into all_existing_models: our ancestor already does so */ } -NetworkSmpiModel::~NetworkSmpiModel() = default; - double NetworkSmpiModel::get_bandwidth_factor(double size) { if (smpi_bw_factor.empty()) - smpi_bw_factor = parse_factor(simgrid::config::get_value("smpi/bw-factor")); + smpi_bw_factor = parse_factor(config::get_value("smpi/bw-factor")); double current = 1.0; for (auto const& fact : smpi_bw_factor) { @@ -70,7 +68,7 @@ double NetworkSmpiModel::get_bandwidth_factor(double size) double NetworkSmpiModel::get_latency_factor(double size) { if (smpi_lat_factor.empty()) - smpi_lat_factor = parse_factor(simgrid::config::get_value("smpi/lat-factor")); + smpi_lat_factor = parse_factor(config::get_value("smpi/lat-factor")); double current = 1.0; for (auto const& fact : smpi_lat_factor) { @@ -89,14 +87,6 @@ double NetworkSmpiModel::get_bandwidth_constraint(double rate, double bound, dou { return rate < 0 ? bound : std::min(bound, rate * get_bandwidth_factor(size)); } - -/************ - * Resource * - ************/ - -/********** - * Action * - **********/ -} -} +} // namespace resource +} // namespace kernel } // namespace simgrid