aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/mosflm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r--libcrystfel/src/mosflm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index 187d0c9b..c92ef343 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -829,6 +829,18 @@ IndexingPrivate *mosflm_prepare(IndexingMethod *indm, UnitCell *cell,
| INDEXING_CHECK_CELL_AXES | INDEXING_CHECK_PEAKS
| INDEXING_USE_LATTICE_TYPE;
+ if ( *indm & INDEXING_USE_LATTICE_TYPE ) {
+ if ( !((*indm & INDEXING_CHECK_CELL_COMBINATIONS)
+ || (*indm & INDEXING_CHECK_CELL_AXES)) ) {
+ ERROR("WARNING: The unit cell from %s might have had "
+ "its axes permuted from the unit cell you gave.\n"
+ "If this is a problem, consider using "
+ "mosflm-axes-latt or mosflm-comb-latt instead of "
+ "mosflm-raw-latt.\n", indexer_str(*indm));
+ }
+
+ }
+
mp = malloc(sizeof(struct mosflm_private));
if ( mp == NULL ) return NULL;