aboutsummaryrefslogtreecommitdiff
path: root/src/ambigator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-21 13:26:37 +0200
committerThomas White <taw@physics.org>2021-07-21 15:34:33 +0200
commit7e5536832b22036a634a74e16073b4762a416e29 (patch)
tree25799eb139d235f524a80c53fb25d0c9f64eb6f1 /src/ambigator.c
parent760f17f56b7f79f67a9029cbe7cc55a0acccd3b9 (diff)
Reduce variable scope where possible
Diffstat (limited to 'src/ambigator.c')
-rw-r--r--src/ambigator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ambigator.c b/src/ambigator.c
index 1657bfb6..02252cd7 100644
--- a/src/ambigator.c
+++ b/src/ambigator.c
@@ -119,7 +119,6 @@ static struct flist *asymm_and_merge(RefList *in, const SymOpList *sym,
signed int h, k, l;
signed int ha, ka, la;
Reflection *cr;
- double res;
int group = 0;
get_indices(refl, &h, &k, &l);
@@ -127,7 +126,7 @@ static struct flist *asymm_and_merge(RefList *in, const SymOpList *sym,
if ( cell == NULL ) {
ERROR("Can't calculate resolution cutoff - no cell\n");
} else {
- res = 2.0*resolution(cell, h, k, l);
+ double res = 2.0*resolution(cell, h, k, l);
if ( res < rmin ) continue;
if ( res > rmax ) continue;
if ( auto_res ) {