aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-24 23:18:52 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:30 +0100
commit80fc8ccadfda39897c5875c7a0e4269058b126bf (patch)
treedada8b85447cc14946c6d7090d803311c46ff954 /tests
parent2647123048344846f4a245cd03b728666b7ad1da (diff)
Formatting
Diffstat (limited to 'tests')
-rw-r--r--tests/pr_gradient_check.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/pr_gradient_check.c b/tests/pr_gradient_check.c
index 1dce7311..22894079 100644
--- a/tests/pr_gradient_check.c
+++ b/tests/pr_gradient_check.c
@@ -196,18 +196,23 @@ static int test_gradients(struct image *image, double incr_val, int refine,
if ( (fabs(cgrad) > 1e-9) &&
!within_tolerance(grad, cgrad, 10.0) )
{
+
STATUS("!- %s %3i %3i %3i"
" %10.2Le %10.2e ratio = %5.2Lf"
" %10.2e %10.2e\n",
str, h, k, l, grad, cgrad, cgrad/grad,
r1, r2);
+
} else {
+
//STATUS("OK %s %3i %3i %3i"
// " %10.2Le %10.2e ratio = %5.2Lf"
// " %10.2e %10.2e\n",
// str, h, k, l, grad, cgrad, cgrad/grad,
// r1, r2);
- n_acc++;
+
+ n_acc++;
+
}
fprintf(fh, "%e %f\n",