diff options
author | Thomas White <taw@physics.org> | 2022-06-09 17:24:54 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-06-09 17:24:54 +0200 |
commit | fdb262fe85917a8d62e6de41cc091a5cdf1a02ac (patch) | |
tree | 24dcd2219e6d61bde5a8c2150b895acb9c8a8136 /tests | |
parent | b4928e70e401c6c7b97e17dbcaccaaf934d1cb6f (diff) |
Remove some unused variables
Diffstat (limited to 'tests')
-rw-r--r-- | tests/prediction_gradient_check.c | 2 | ||||
-rw-r--r-- | tests/ring_check.c | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/tests/prediction_gradient_check.c b/tests/prediction_gradient_check.c index 6d8e596a..493da445 100644 --- a/tests/prediction_gradient_check.c +++ b/tests/prediction_gradient_check.c @@ -218,7 +218,6 @@ static double test_gradients(Crystal *cr, double incr_val, int refine, RefList *reflections; FILE *fh = NULL; int ntot = 0; - double total = 0.0; char tmp[32]; double *vec1; double *vec2; @@ -328,7 +327,6 @@ static double test_gradients(Crystal *cr, double incr_val, int refine, continue; } - total += fabsl(cgrad - grad); ntot++; if ( !within_tolerance(grad, cgrad, 5.0) diff --git a/tests/ring_check.c b/tests/ring_check.c index 863802c7..329456fa 100644 --- a/tests/ring_check.c +++ b/tests/ring_check.c @@ -47,8 +47,6 @@ static void third_integration_check(struct image *image, int n_trials, int *fail, gsl_rng *rng) { double mean_intensity = 0.0; - double mean_bg = 0.0; - double mean_max = 0.0; double mean_sigma = 0.0; int i; int fs, ss; @@ -80,8 +78,6 @@ static void third_integration_check(struct image *image, int n_trials, } mean_intensity /= n_trials; - mean_bg /= n_trials; - mean_max /= n_trials; mean_sigma /= n_trials; STATUS(" Third check (mean values): intensity = %.2f, sigma = %.2f," |