X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f5e8daaa6e9f74521068aa75837200bcd182ea6..4676d5e57abd98702608661750274226eb48e20e:/src/include/surf/maxmin.h diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index a522198151..5ebf9da119 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -12,7 +12,8 @@ #include "xbt/misc.h" #include "surf/datatypes.h" -#define MAXMIN_PRECISION 0.00001 +extern double sg_maxmin_precision; +#define MAXMIN_PRECISION sg_maxmin_precision static XBT_INLINE void double_update(double *variable, double value) { *variable -= value; @@ -30,7 +31,7 @@ static XBT_INLINE int double_equals(double value1, double value2) return (fabs(value1 - value2) < MAXMIN_PRECISION); } -XBT_PUBLIC(lmm_system_t) lmm_system_new(void); +XBT_PUBLIC(lmm_system_t) lmm_system_new(int selective_update); XBT_PUBLIC(void) lmm_system_free(lmm_system_t sys); void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var);