Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix issue with precision in 394ea1fb (on 32 bits platforms mainly)
authorAugustin Degomme <augustin.degomme@imag.fr>
Fri, 12 Sep 2014 08:36:50 +0000 (10:36 +0200)
committerAugustin Degomme <augustin.degomme@imag.fr>
Fri, 12 Sep 2014 08:36:50 +0000 (10:36 +0200)
src/surf/maxmin.cpp

index 7310cb0..cd74d2a 100644 (file)
@@ -709,7 +709,7 @@ void lmm_solve(lmm_system_t sys)
         XBT_DEBUG("Setting %p (%d) value to %f\n", var, var->id_int, var->value);
       } else {
        //If there exist a variable that can reach its bound, only update it (and other with the same bound) for now.
-        if (min_bound == var->bound*var->weight) {
+           if (double_equals(min_bound, var->bound*var->weight, sg_maxmin_precision)){
           var->value = var->bound;
           XBT_DEBUG("Setting %p (%d) value to %f\n", var, var->id_int, var->value);
         }