From: Arnaud Giersch Date: Fri, 9 Dec 2011 15:45:10 +0000 (+0100) Subject: Ensure that all constraints are put in modified_constraint_set on lmm_expand. X-Git-Tag: exp_20120216~188 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9fdf4cc5eefe3534a8689d5093801ddaded6cb8c Ensure that all constraints are put in modified_constraint_set on lmm_expand. Without this change, if cnst was previously marked as modified, the constraints involving var were not considered. --- diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index c7f2d8e15b..191068f13b 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -258,6 +258,8 @@ void lmm_expand(lmm_system_t sys, lmm_constraint_t cnst, make_constraint_active(sys, cnst); lmm_update_modified_set(sys, cnst); + if (var->cnsts_number > 1) + lmm_update_modified_set(sys, var->cnsts[0].constraint); } void lmm_expand_add(lmm_system_t sys, lmm_constraint_t cnst,