From a12ac1e0085ed93316094a277ef495b69f33ff03 Mon Sep 17 00:00:00 2001 From: alegrand Date: Wed, 1 Aug 2007 00:31:34 +0000 Subject: [PATCH] just warn me when a value is weird. This is just a printing function, not an asserting one. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3920 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/maxmin.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index 24405cc224..8419d5c1b7 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -386,15 +386,17 @@ void lmm_print(lmm_system_t sys) } 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); - 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 -- 2.20.1