From 77406eb6d3a655364e52f046215fcebe8d873368 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 29 Aug 2019 17:06:24 +0200 Subject: compare_reindexed_cell_parameters: Increase number of possibilities in final permutation check More than 5 possible when there are axes with similar lengths. --- libcrystfel/src/cell-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c index 0ffe463f..c59d7f96 100644 --- a/libcrystfel/src/cell-utils.c +++ b/libcrystfel/src/cell-utils.c @@ -2080,7 +2080,7 @@ static IntegerMatrix *check_permutations(UnitCell *cell_reduced, UnitCell *refer double a, b, c, al, be, ga; double min_dist = +INFINITY; int s, sel; - IntegerMatrix *best_m[5] = {NULL, NULL, NULL, NULL, NULL}; + IntegerMatrix *best_m[24]; int n_best = 0; m = intmat_new(3, 3); @@ -2128,7 +2128,7 @@ static IntegerMatrix *check_permutations(UnitCell *cell_reduced, UnitCell *refer } else if ( dist == min_dist ) { - if ( n_best == 5 ) { + if ( n_best == 24 ) { ERROR("WARNING: Too many equivalent " "reindexed lattices\n"); } else { -- cgit v1.2.3