aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/mosflm.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-02-19 18:13:13 +0100
committerThomas White <taw@physics.org>2013-02-19 18:13:13 +0100
commit59b99486be3865a53049d0c6317157d9f22bc0e1 (patch)
tree277c5e32714e547e8fb3d242ed5f3d28f6708e92 /libcrystfel/src/mosflm.c
parenta5439f150d97b30576ea9f337c004ff0a9e404a1 (diff)
Add -cell and -nocell to indexing methods
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r--libcrystfel/src/mosflm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index a03e621d..187d0c9b 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -817,8 +817,11 @@ IndexingPrivate *mosflm_prepare(IndexingMethod *indm, UnitCell *cell,
if ( *indm & INDEXING_USE_LATTICE_TYPE ) need_cell = 1;
if ( need_cell && (cell == NULL) ) {
- ERROR("MOSFLM needs a unit cell for this set of flags.\n");
- return NULL;
+ ERROR("Altering your MOSFLM flags because no PDB file was"
+ " provided.\n");
+ *indm &= ~INDEXING_CHECK_CELL_COMBINATIONS;
+ *indm &= ~INDEXING_CHECK_CELL_AXES;
+ *indm &= ~INDEXING_USE_LATTICE_TYPE;
}
/* Flags that MOSFLM knows about */