solstice-solver

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

commit c4270b278d229c657aa439b5fdcc98b1bdf0d700
parent d4e76776f903fab8ab6769c777d4c6b9955c3451
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 13 Sep 2016 09:48:14 +0200

Test a new case in test solver #1

Check that a model with no sampled geometry is a BAD_ARG.

Diffstat:
Msrc/test_ssol_solver1.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/test_ssol_solver1.c b/src/test_ssol_solver1.c @@ -157,6 +157,9 @@ main(int argc, char** argv) CHECK(eq_eps(std, sqrt((SQR(4 * DNI_cos) - SQR(4 * DNI_cos)) / N), 1e-4), 1); logger_print(&logger, LOG_OUTPUT, "\nP = %g +/- %g\n", m, std); + CHECK(ssol_instance_dont_sample(heliostat, 1), RES_OK); + CHECK(ssol_solve(scene, rng, 10, stdout), RES_BAD_ARG); /* no sampled geometry */ + /* free data */ CHECK(ssol_instance_ref_put(heliostat), RES_OK);