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
rename some symbols around Link::isShared to make their purpose clear
[simgrid.git]
/
src
/
surf
/
fair_bottleneck.cpp
diff --git
a/src/surf/fair_bottleneck.cpp
b/src/surf/fair_bottleneck.cpp
index
2affd8d
..
a0cd4c1
100644
(file)
--- a/
src/surf/fair_bottleneck.cpp
+++ b/
src/surf/fair_bottleneck.cpp
@@
-102,7
+102,7
@@
void bottleneck_solve(lmm_system_t sys)
nb++;
}
XBT_DEBUG("\tThere are %d variables", nb);
nb++;
}
XBT_DEBUG("\tThere are %d variables", nb);
- if (nb > 0 && !cnst->shar
ed
)
+ if (nb > 0 && !cnst->shar
ing_policy
)
nb = 1;
if (!nb) {
cnst->remaining = 0.0;
nb = 1;
if (!nb) {
cnst->remaining = 0.0;
@@
-141,7
+141,7
@@
void bottleneck_solve(lmm_system_t sys)
elem = (lmm_element_t)_elem;
if (elem->variable->weight <= 0)
break;
elem = (lmm_element_t)_elem;
if (elem->variable->weight <= 0)
break;
- if (cnst->shar
ed
) {
+ if (cnst->shar
ing_policy
) {
XBT_DEBUG("\tUpdate constraint %p (%g) with variable %p by %g",
cnst, cnst->remaining, elem->variable,
elem->variable->mu);
XBT_DEBUG("\tUpdate constraint %p (%g) with variable %p by %g",
cnst, cnst->remaining, elem->variable,
elem->variable->mu);
@@
-154,7
+154,7
@@
void bottleneck_solve(lmm_system_t sys)
cnst->usage = MIN(cnst->usage, elem->value * elem->variable->mu);
}
}
cnst->usage = MIN(cnst->usage, elem->value * elem->variable->mu);
}
}
- if (!cnst->shar
ed
) {
+ if (!cnst->shar
ing_policy
) {
XBT_DEBUG("\tUpdate constraint %p (%g) by %g",
cnst, cnst->remaining, cnst->usage);
XBT_DEBUG("\tUpdate constraint %p (%g) by %g",
cnst, cnst->remaining, cnst->usage);