solstice

Compute collected power and efficiencies of a solar plant
git clone git://git.meso-star.com/solstice.git
Log | Files | Refs | README | LICENSE

commit 9066c8cbf9cc15b7292628991d054562649184b1
parent 4b0b0805ec4e44dd8d4c86447ec8da11691079a5
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Mon, 22 May 2017 16:48:24 +0200

Manage the case integration ends in error and an integrator is created.

Results are now output despite the error and an error message is printed in
stderr.

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

diff --git a/src/solstice_solve.c b/src/solstice_solve.c @@ -483,7 +483,7 @@ solstice_solve(struct solstice* solstice) solstice->dump_paths ? &solstice->path_tracker : NULL, NULL, &estimator); if(res != RES_OK) { fprintf(stderr, "Error in integrating the solar flux.\n"); - goto error; + if(!estimator) goto error; } if(solstice->dump_paths) {