solstice-solver

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

commit d7475dbaed0665e15645e5bc2ee1497b248bd530
parent 913e96e37a3dac8aa0a7fdece8874d5131767a97
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 24 Jan 2017 16:45:55 +0100

Change solver argument requirement (output stream can now be NULL).

Since the solver computes by-receiver output, NULL output stream is now
meaningful.

Diffstat:
Msrc/ssol_solver.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ssol_solver.c b/src/ssol_solver.c @@ -254,6 +254,7 @@ point_dump struct ssol_receiver_data out; size_t n; + if (!stream) return RES_OK; out.realization_id = irealisation; out.date = 0; /* TODO */ out.segment_id = (uint32_t)isegment; @@ -330,7 +331,7 @@ ssol_solve ATOMIC res = RES_OK; ASSERT(nrealisations <= INT_MAX); - if(!scn || !rng_state || !realisations_count || !output || !estimator) { + if(!scn || !rng_state || !realisations_count || !estimator) { res = RES_BAD_ARG; goto error; }