diff options
author | Thomas White <taw@physics.org> | 2011-06-28 11:45:00 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:30 +0100 |
commit | 8e748a6ed10e224837a9c6a518074549aadcb445 (patch) | |
tree | e5cbfaf2c8d1e12a2801a4a7ca41ac5f309f82ab /tests | |
parent | a901dc48ca178c9c72df10a669e10f06b8799d3a (diff) |
Don't write wrongness file any more
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pr_gradient_check.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/pr_gradient_check.c b/tests/pr_gradient_check.c index e7a2c683..5851e744 100644 --- a/tests/pr_gradient_check.c +++ b/tests/pr_gradient_check.c @@ -128,7 +128,7 @@ static int test_gradients(struct image *image, double incr_val, int refine, int *valid; int nref; int n_acc, n_valid; - FILE *fh; + //FILE *fh; image->reflections = find_intersections(image, image->indexed_cell); @@ -158,7 +158,7 @@ static int test_gradients(struct image *image, double incr_val, int refine, calc_either_side(image, incr_val, valid, vals, refine); - fh = fopen("wrongness.dat", "a"); + //fh = fopen("wrongness.dat", "a"); n_valid = nref; n_acc = 0; i = 0; @@ -215,11 +215,11 @@ static int test_gradients(struct image *image, double incr_val, int refine, } - fprintf(fh, "%e %f\n", + //fprintf(fh, "%e %f\n", //resolution(image->indexed_cell, h, k, l), //rad2deg(tt), - cgrad, - fabs((grad-cgrad)/grad)); + // cgrad, + // fabs((grad-cgrad)/grad)); } @@ -229,7 +229,7 @@ static int test_gradients(struct image *image, double incr_val, int refine, STATUS("%s: %i out of %i valid gradients were accurate.\n", str, n_acc, n_valid); - fclose(fh); + //fclose(fh); if ( n_acc != n_valid ) return 1; |