solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 3a215550d9bfc2ced499cb1d81d7d4497af9098e
parent cbdf4cba353418749ed689a7b042a967fd29762f
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri, 30 Sep 2016 16:22:05 +0200

Change tolerance for test solver #4 result: now OK with Embree 2.11

A remaining problem is that s3d is slightly imprecise when computing
heliostats' area, preventing the test to find the expected result more accurately.

Diffstat:
Msrc/test_ssol_solver4.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test_ssol_solver4.c b/src/test_ssol_solver4.c @@ -143,7 +143,7 @@ main(int argc, char** argv) CHECK(pp_sum(tmp, "cible", N, &m, &std), RES_OK); logger_print(&logger, LOG_OUTPUT, "\nP = %g +/- %g\n", m, std); #define DNI_cos (1000 * cos(0)) - CHECK(eq_eps(m, 400 * DNI_cos, 1), 1); + CHECK(eq_eps(m, 400 * DNI_cos, 400 * DNI_cos * 1e-4), 1); CHECK(eq_eps(std, 0, 0.1), 1); /* free data */