diff options
author | Thomas White <taw@physics.org> | 2013-02-19 18:13:13 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-02-19 18:13:13 +0100 |
commit | 59b99486be3865a53049d0c6317157d9f22bc0e1 (patch) | |
tree | 277c5e32714e547e8fb3d242ed5f3d28f6708e92 /libcrystfel/src/dirax.c | |
parent | a5439f150d97b30576ea9f337c004ff0a9e404a1 (diff) |
Add -cell and -nocell to indexing methods
Diffstat (limited to 'libcrystfel/src/dirax.c')
-rw-r--r-- | libcrystfel/src/dirax.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c index e6ff36b1..fb60656a 100644 --- a/libcrystfel/src/dirax.c +++ b/libcrystfel/src/dirax.c @@ -637,8 +637,10 @@ IndexingPrivate *dirax_prepare(IndexingMethod *indm, UnitCell *cell, if ( *indm & INDEXING_CHECK_CELL_AXES ) need_cell = 1; if ( need_cell && (cell == NULL) ) { - ERROR("DirAx needs a unit cell for this set of flags.\n"); - return NULL; + ERROR("Altering your DirAx flags because no PDB file was" + " provided.\n"); + *indm &= ~INDEXING_CHECK_CELL_COMBINATIONS; + *indm &= ~INDEXING_CHECK_CELL_AXES; } /* Flags that DirAx knows about */ |