X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1fc042e8bc9c51f9267fa1936deaebe59ae01ee7..3de3abdac93bc1f1db2415d1f50c94938a298071:/src/include/surf/maxmin.hpp diff --git a/src/include/surf/maxmin.hpp b/src/include/surf/maxmin.hpp index 31c5d19768..68f3f40c66 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 "surf/datatypes.h" +#include "surf/surf.hpp" #include "xbt/asserts.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<