Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add debugging
authorvelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 30 Jul 2007 13:37:23 +0000 (13:37 +0000)
committervelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 30 Jul 2007 13:37:23 +0000 (13:37 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3908 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/lagrange.c

index 40d49ed..bdea17c 100644 (file)
@@ -525,17 +525,17 @@ void lmm_set_default_protocol_function(double (* func_f)  (lmm_variable_t var, d
 #define VEGAS_SCALING 1000.0
 
 double func_vegas_f(lmm_variable_t var, double x){
-  xbt_assert0(x>0.0,"Don't call me with stupid values!");
+  xbt_assert1(x>0.0,"Don't call me with stupid values! (%1.20f)",x);
   return VEGAS_SCALING*var->df*log(x);
 }
 
 double func_vegas_fp(lmm_variable_t var, double x){
-  xbt_assert0(x>0.0,"Don't call me with stupid values!");
+  xbt_assert1(x>0.0,"Don't call me with stupid values! (%1.20f)",x);
   return VEGAS_SCALING*var->df/x;
 }
 
 double func_vegas_fpi(lmm_variable_t var, double x){
-  xbt_assert0(x>0.0,"Don't call me with stupid values!");
+  xbt_assert1(x>0.0,"Don't call me with stupid values! (%1.20f)",x);
   return var->df/(x/VEGAS_SCALING);
 }