A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Also simplify the API of Engine::getLinkList
[simgrid.git]
/
src
/
surf
/
network_smpi.cpp
diff --git
a/src/surf/network_smpi.cpp
b/src/surf/network_smpi.cpp
index
b559d23
..
47b0d16
100644
(file)
--- a/
src/surf/network_smpi.cpp
+++ b/
src/surf/network_smpi.cpp
@@
-11,7
+11,7
@@
#include "network_smpi.hpp"
#include "simgrid/sg_config.h"
#include "network_smpi.hpp"
#include "simgrid/sg_config.h"
-#include "smpi
/smpi
_utils.hpp"
+#include "smpi_utils.hpp"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
@@
-58,7
+58,7
@@
double NetworkSmpiModel::bandwidthFactor(double size)
smpi_bw_factor = parse_factor(xbt_cfg_get_string("smpi/bw-factor"));
double current = 1.0;
smpi_bw_factor = parse_factor(xbt_cfg_get_string("smpi/bw-factor"));
double current = 1.0;
- for (
const auto
& fact : smpi_bw_factor) {
+ for (
auto const
& fact : smpi_bw_factor) {
if (size <= fact.factor) {
XBT_DEBUG("%f <= %zu return %f", size, fact.factor, current);
return current;
if (size <= fact.factor) {
XBT_DEBUG("%f <= %zu return %f", size, fact.factor, current);
return current;
@@
-76,7
+76,7
@@
double NetworkSmpiModel::latencyFactor(double size)
smpi_lat_factor = parse_factor(xbt_cfg_get_string("smpi/lat-factor"));
double current = 1.0;
smpi_lat_factor = parse_factor(xbt_cfg_get_string("smpi/lat-factor"));
double current = 1.0;
- for (
const auto
& fact : smpi_lat_factor) {
+ for (
auto const
& fact : smpi_lat_factor) {
if (size <= fact.factor) {
XBT_DEBUG("%f <= %zu return %f", size, fact.factor, current);
return current;
if (size <= fact.factor) {
XBT_DEBUG("%f <= %zu return %f", size, fact.factor, current);
return current;