Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
if this line induce a bug (see commit 05cd623), then kill it
[simgrid.git] / src / surf / maxmin.c
index b8f4d10..929c106 100644 (file)
@@ -659,9 +659,8 @@ void lmm_solve(lmm_system_t sys)
           make_elem_inactive(elem);
           elem_list = &(cnst->element_set);
           xbt_swag_foreach(elem, elem_list) {
-              make_elem_active(elem);
             if (elem->variable->weight <= 0 || elem->variable->value > 0)
-              continue;
+              break;
             if (elem->value > 0)
               cnst->usage = MAX(cnst->usage, elem->value / elem->variable->weight);
           }