X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b188a3ca7fe91cf125a08229fb4fe51eee26e6d..2589a5617fe05b8b2aaf2bc9bb998e6ad4271518:/testsuite/surf/lmm_usage.c?ds=sidebyside diff --git a/testsuite/surf/lmm_usage.c b/testsuite/surf/lmm_usage.c index 61b3ad7fb3..060ed25cec 100644 --- a/testsuite/surf/lmm_usage.c +++ b/testsuite/surf/lmm_usage.c @@ -1,6 +1,6 @@ /* A few tests for the maxmin library */ -/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2007-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -31,7 +31,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test, typedef enum { MAXMIN, LAGRANGE_RENO, - LAGRANGE_VEGAS, + LAGRANGE_VEGAS } method_t; static double dichotomy(double func(double), double min, double max, @@ -173,7 +173,7 @@ void test1(method_t method) max_deviation = MAX(max_deviation, fabs(lmm_variable_getvalue(R_1_2_3) - (a - x))); - if (max_deviation > MAXMIN_PRECISION) { + if (max_deviation > 0.00001) { // Legacy value used in lagrange.c XBT_WARN("Max Deviation from optimal solution : %g", max_deviation); XBT_WARN("Found x = %1.20f", x); XBT_WARN("Deviation from optimal solution (R_1 = %g): %1.20f", x, @@ -208,7 +208,7 @@ void test1(method_t method) max_deviation = MAX(max_deviation, fabs(lmm_variable_getvalue(R_1_2_3) - (a - x))); - if (max_deviation > MAXMIN_PRECISION) { + if (max_deviation > 0.00001) { // Legacy value used in lagrange.c XBT_WARN("Max Deviation from optimal solution : %g", max_deviation); XBT_WARN("Found x = %1.20f", x); XBT_WARN("Deviation from optimal solution (R_1 = %g): %1.20f", x,