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
Some values were close to 0 instead of equal to 0, which caused some bad behaviors...
[simgrid.git]
/
src
/
surf
/
maxmin.c
diff --git
a/src/surf/maxmin.c
b/src/surf/maxmin.c
index
e675cca
..
b266a3d
100644
(file)
--- a/
src/surf/maxmin.c
+++ b/
src/surf/maxmin.c
@@
-465,8
+465,8
@@
void lmm_solve(lmm_system_t sys)
elem = &var->cnsts[i];
cnst = elem->constraint;
if(cnst->shared) {
elem = &var->cnsts[i];
cnst = elem->constraint;
if(cnst->shared) {
-
cnst->remaining -= elem->value * var->value
;
-
cnst->usage -= elem->value / var->weight
;
+
double_update(&(cnst->remaining), elem->value * var->value)
;
+
double_update(&(cnst->usage), elem->value / var->weight)
;
}
make_elem_inactive(elem);
}
}
make_elem_inactive(elem);
}