aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-10-22 15:26:02 +0200
committerThomas White <taw@physics.org>2019-10-22 15:26:02 +0200
commit368030b0020b0d73a67ffef10e87e40818a3ccbe (patch)
tree387a087f802c74cca789d027870719975b5133ad
parente5bd22e532c65c4980f8fcda566e9228f730a743 (diff)
Add more warnings
-rw-r--r--libcrystfel/src/index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 2dead425..9e006ef7 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -583,6 +583,8 @@ static int check_cell(IndexingFlags flags, Crystal *cr, UnitCell *target,
/* Check at all? */
if ( !(flags & INDEXING_CHECK_CELL) ) return 0;
+ if ( !right_handed(target) ) STATUS("WARNING: reference cell is left handed\n");
+ if ( !right_handed(crystal_get_cell(cr)) ) STATUS("WARNING: unmatched cell is left handed\n");
out = compare_reindexed_cell_parameters(crystal_get_cell(cr), target,
tolerance, &rm);