From: alegrand Date: Fri, 20 Jul 2007 15:19:31 +0000 (+0000) Subject: Share precision value with other modules. X-Git-Tag: v3.3~1480 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/493fc5668a6e4819bd820f86093ca3a7f0909d5a Share precision value with other modules. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3880 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/lagrange.c b/src/surf/lagrange.c index 02b2bae2c8..008c2108c5 100644 --- a/src/surf/lagrange.c +++ b/src/surf/lagrange.c @@ -96,7 +96,7 @@ void lagrange_solve(lmm_system_t sys) * Lagrange Variables. */ int max_iterations = 100; - double epsilon_min_error = 1e-6; + double epsilon_min_error = MAXMIN_PRECISION; double dichotomy_min_error = 1e-20; double overall_error = 1; @@ -457,7 +457,7 @@ double diff_aux(lmm_variable_t var, double x) double tmp_fpi, result; XBT_IN2("(var (%p), x (%1.20f))", var, x); - xbt_assert0(var->func_fp, + xbt_assert0(var->func_fpi, "Initialize the protocol functions first create variables before."); tmp_fpi = var->func_fpi(var, x);