aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/cell.c5
-rw-r--r--libcrystfel/src/index.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/libcrystfel/src/cell.c b/libcrystfel/src/cell.c
index a6df931b..38bca61c 100644
--- a/libcrystfel/src/cell.c
+++ b/libcrystfel/src/cell.c
@@ -752,8 +752,11 @@ UnitCell *match_cell(UnitCell *cell, UnitCell *template, int verbose,
/* Test modulus for agreement with moduli of template */
for ( i=0; i<3; i++ ) {
- if ( !within_tolerance(lengths[i], tlen, tols[i]) )
+ if ( !within_tolerance(lengths[i], tlen,
+ tols[i]) )
+ {
continue;
+ }
cand[i][ncand[i]].vec.u = tx;
cand[i][ncand[i]].vec.v = ty;
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 56b34baa..31239179 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -191,10 +191,12 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm,
new_cell = cell_new_from_cell(cand);
break;
case CELLR_REDUCE :
- new_cell = match_cell(cand, cell, verbose, ltl, 1);
+ new_cell = match_cell(cand, cell, verbose,
+ ltl, 1);
break;
case CELLR_COMPARE :
- new_cell = match_cell(cand, cell, verbose, ltl, 0);
+ new_cell = match_cell(cand, cell, verbose,
+ ltl, 0);
break;
case CELLR_COMPARE_AB :
new_cell = match_cell_ab(cand, cell);