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:
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) {