aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-29 17:06:24 +0200
committerThomas White <taw@physics.org>2019-08-29 17:06:24 +0200
commit77406eb6d3a655364e52f046215fcebe8d873368 (patch)
tree0d64cf6a96107b74fc695a8e1a0bd06f405762ce
parentc0d70ec77ef264c478d2079b1cac6b9c2eba0797 (diff)
compare_reindexed_cell_parameters: Increase number of possibilities in final permutation check
More than 5 possible when there are axes with similar lengths.
-rw-r--r--libcrystfel/src/cell-utils.c4
1 files changed, 2 insertions, 2 deletions
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 {