commit 15b673b481fe50396cc9b6fc8d89fd72782a30f6
parent d0fa71ccb625f4547d66ff9904b2b06a42f6bd3c
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Thu, 29 Sep 2016 15:33:02 +0200
Check data validity
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test_ssol_solver3N.c b/src/test_ssol_solver3N.c
@@ -61,7 +61,7 @@ void set_1(struct common* common, const double pos[3]) {
d3_normalize(out_dir, out_dir);
d3_cross(axis, out_dir, common->sun_dir);
/* FIXME: manage the colinear case */
- d3_normalize(axis, axis);
+ NCHECK(d3_normalize(axis, axis), 0);
c = d3_dot(out_dir, common->sun_dir);
a = acos(c) / 2;