aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-28 11:45:10 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:30 +0100
commit12280b8336b5a221d2502292cd6aded57c647ad1 (patch)
tree25789fcf2db061b37510836966b3a0d87b2a8be5
parent8e748a6ed10e224837a9c6a518074549aadcb445 (diff)
Set higher threshold for testing gradients
It's the small gradients that are wrong.
-rw-r--r--tests/pr_gradient_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pr_gradient_check.c b/tests/pr_gradient_check.c
index 5851e744..0bade784 100644
--- a/tests/pr_gradient_check.c
+++ b/tests/pr_gradient_check.c
@@ -193,7 +193,7 @@ static int test_gradients(struct image *image, double incr_val, int refine,
get_partial(refl, &r1, &r2, &p, &cl, &ch);
- if ( (fabs(cgrad) > 1e-9) &&
+ if ( (fabs(cgrad) > 5e-8) &&
!within_tolerance(grad, cgrad, 10.0) )
{