aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-04-04 10:42:28 +0200
committerThomas White <taw@physics.org>2019-04-05 16:07:57 +0200
commitc808bee46d64de7f0ca3571c38920bb73fb1332c (patch)
tree13a1cbef41dd0d83c2d668e923a17df085bad07e
parent051077e3bcb44822713ec341a25e853fbbc1c811 (diff)
compare_reindexed_cell_parameters: Require lattice to be primitive unless csl set
-rw-r--r--libcrystfel/src/cell-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c
index 847ddb55..c0159c13 100644
--- a/libcrystfel/src/cell-utils.c
+++ b/libcrystfel/src/cell-utils.c
@@ -2093,6 +2093,9 @@ int compare_reindexed_cell_parameters(UnitCell *cell_in, UnitCell *reference_in,
if ( rtnl_cmp(rtnl_mtx_det(M),rtnl_zero()) == 0 ) continue;
test = cell_transform_rational(cell, M);
+
+ if ( !csl && (cell_get_centering(test) != 'P') ) continue;
+
cell_get_parameters(test, &at, &bt, &ct, &alt, &bet, &gat);
if ( !right_handed(test) ) {
cell_free(test);