Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
just warn me when a value is weird. This is just a printing function, not an assertin...
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 1 Aug 2007 00:31:34 +0000 (00:31 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 1 Aug 2007 00:31:34 +0000 (00:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3920 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/maxmin.c

index 24405cc..8419d5c 100644 (file)
@@ -386,15 +386,17 @@ void lmm_print(lmm_system_t sys)
     }
     DEBUG1("%s",trace_buf);
     trace_buf[0]='\000';
     }
     DEBUG1("%s",trace_buf);
     trace_buf[0]='\000';
-    xbt_assert3(!double_positive(sum-cnst->bound), "Incorrect value (%f is not smaller than %f): %g",
-               sum,cnst->bound,sum-cnst->bound);
+    if(double_positive(sum-cnst->bound))
+      WARN3("Incorrect value (%f is not smaller than %f): %g",
+              sum,cnst->bound,sum-cnst->bound);
   }
 
   /* Printing Result */
   xbt_swag_foreach(var, var_list) {
     if(var->bound>0) {
       DEBUG4("'%p'(%f) : %f (<=%f)",var,var->weight,var->value, var->bound);
   }
 
   /* Printing Result */
   xbt_swag_foreach(var, var_list) {
     if(var->bound>0) {
       DEBUG4("'%p'(%f) : %f (<=%f)",var,var->weight,var->value, var->bound);
-      xbt_assert2(!double_positive(var->value-var->bound), "Incorrect value (%f is not smaller than %f",
+      if(double_positive(var->value-var->bound))
+        WARN2("Incorrect value (%f is not smaller than %f",
                  var->value, var->bound);
     }
     else 
                  var->value, var->bound);
     }
     else