commit c4227f91e5c8689822af78c46a1045fa913c8250
parent 6712544f844071bbd367e311f01e00c6a1aa6d73
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 14 May 2018 12:15:35 +0200
Fix the solve_pixel function
This function returned an error when the last pixel realisation
encountered a numerical issue, leading to a global integration error.
Such numerical error is now handled without stopping the whole
integration.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/sdis_solve.c b/src/sdis_solve.c
@@ -88,7 +88,9 @@ solve_pixel
sum_weights += w;
sum_weights_sqr += w*w;
++N;
- } else if(res != RES_BAD_OP) {
+ } else if(res == RES_BAD_OP) {
+ res = RES_OK;
+ } else {
goto error;
}
}