Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Break loop here.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Jul 2012 20:31:51 +0000 (22:31 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Jul 2012 20:34:22 +0000 (22:34 +0200)
Commit fcc0e93b60352e0d912f18c32706c1ca717c4896 (More cache cleaning in lmm_solve)
wrongly changed a "break" statement into a "continue".

Fixes infinite loop in tests smpi-reduce.

src/surf/maxmin.c

index b8f4d10..a441d1e 100644 (file)
@@ -661,7 +661,7 @@ void lmm_solve(lmm_system_t sys)
           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);
           }