aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-01-20 20:47:54 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:44 +0100
commit6e66a23c340e9541cf4c2661342d8a149c4d8f0d (patch)
treee0e9a5dc7d1ed51f35b84081a1a821ec0860e7f1 /libcrystfel/src
parent43c6a004260a2bf4989f17357bdf8df2dba86c32 (diff)
Remove unused variables
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/reax.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libcrystfel/src/reax.c b/libcrystfel/src/reax.c
index 93b93659..17fa69f3 100644
--- a/libcrystfel/src/reax.c
+++ b/libcrystfel/src/reax.c
@@ -506,27 +506,17 @@ static void find_candidates(struct reax_private *p,
{
int i;
double th, ph;
- double fom;
for ( i=0; i<s->n_search; i++ ) {
s->search[i].cand = NULL;
s->search[i].n_cand = 0;
}
- fom = 0.0; th = 0.0; ph = 0.0;
+ th = 0.0; ph = 0.0;
for ( i=0; i<p->n_dir; i++ ) {
-
- double new_fom;
-
- new_fom = check_dir(&p->directions[i], flist,
+ check_dir(&p->directions[i], flist,
p->nel, pmax, fft_in, fft_out, p->plan,
s, NULL, NULL);
- if ( new_fom > fom ) {
- fom = new_fom;
- th = p->directions[i].th;
- ph = p->directions[i].ph;
- }
-
}
squash_vectors(s, INC_TOL_MULTIPLIER*p->angular_inc);