From 12280b8336b5a221d2502292cd6aded57c647ad1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 28 Jun 2011 11:45:10 +0200 Subject: Set higher threshold for testing gradients It's the small gradients that are wrong. --- tests/pr_gradient_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) ) { -- cgit v1.2.3