commit b15748da4e8da84dce0300320c7d5b22d7d7e2d4
parent 265b9b5878398a11cb8be16e4e5155684515badc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 2 Jul 2021 11:27:44 +0200
Fix a zealous assert in the RDG-FA phase function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ssf_phase_rdgfa.c b/src/ssf_phase_rdgfa.c
@@ -129,7 +129,7 @@ eval2
const double cos_theta)
{
double f, cos2_theta, phase;
- ASSERT(rdgfa && eq_eps(cos_theta, cos(theta), fabs(cos_theta*1.e-6)));
+ ASSERT(rdgfa && eq_eps(cos_theta, cos(theta), 1.e-6));
/* Precompute values */
cos2_theta = cos_theta * cos_theta;