diff options
author | Thomas White <taw@physics.org> | 2013-03-01 14:51:06 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-03-01 14:51:06 +0100 |
commit | f1cb293e305fed8e1790ca24d46a6a1e219b1ed7 (patch) | |
tree | 8d7ebb6d5632a5e990258ef2869e2259e79e65da /libcrystfel/src/mosflm.c | |
parent | a2a5780aaef37122c9c9b6dfc14b218d0df61185 (diff) |
Warn about MOSFLM unit cell settings
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r-- | libcrystfel/src/mosflm.c | 12 |
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; |