X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f513bba121b464f479e0a7a216dab3682162ae4c..72bcdd6c079bd27b3e4e1e5a5552ca97a4f2bf19:/src/include/surf/maxmin.hpp diff --git a/src/include/surf/maxmin.hpp b/src/include/surf/maxmin.hpp index 95b0ebc33b..bdf2977e50 100644 --- a/src/include/surf/maxmin.hpp +++ b/src/include/surf/maxmin.hpp @@ -7,17 +7,11 @@ #define SURF_MAXMIN_HPP #include "src/internal_config.h" -#include "xbt/misc.h" +#include "surf/surf.hpp" #include "xbt/asserts.h" -#include "surf/datatypes.h" +#include "xbt/misc.h" #include -namespace simgrid { -namespace surf { -class Action; -} -} - /** @addtogroup SURF_lmm * @details * A linear maxmin solver to resolve inequations systems. @@ -131,13 +125,13 @@ XBT_PUBLIC_DATA(double) sg_maxmin_precision; XBT_PUBLIC_DATA(double) sg_surf_precision; XBT_PUBLIC_DATA(int) sg_concurrency_limit; -static inline void double_update(double *variable, double value, double precision) +static inline void double_update(double* variable, double value, double precision) { - //printf("Updating %g -= %g +- %g\n",*variable,value,precision); - //xbt_assert(value==0 || value>precision); - //Check that precision is higher than the machine-dependent size of the mantissa. If not, brutal rounding may happen, - //and the precision mechanism is not active... - //xbt_assert(*variable< (2<precision); + // Check that precision is higher than the machine-dependent size of the mantissa. If not, brutal rounding may + // happen, and the precision mechanism is not active... + // xbt_assert(*variable< (2<