diff options
author | Thomas White <taw@physics.org> | 2017-06-27 14:33:57 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-06-27 14:33:57 +0200 |
commit | 5bb6d2e69535498a2e4aaf41c51c7566cd15a170 (patch) | |
tree | e749de7cba52f5c78304a27bc3286b317c5ecdd7 | |
parent | 61d8d5cf74fb962a25742c7547b7450414ae5a5b (diff) |
Dummy setup bits for INDEXING_NONE
This doesn't do much except for preventing a possibly confusing warning
message about "Failed to prepare indexing method none".
You can actually do --indexing=none,asdf, but don't tell anyone...
-rw-r--r-- | libcrystfel/src/index.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 9bcf5e15..446f57a3 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -92,6 +92,10 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell, switch ( *m & INDEXING_METHOD_MASK ) { + case INDEXING_NONE : + priv = "none"; + break; + case INDEXING_DIRAX : priv = dirax_prepare(m, cell, det, ltl); break; @@ -130,7 +134,9 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell, return NULL; } - STATUS("Prepared indexing method %s\n", str); + if ( *m != INDEXING_NONE ) { + STATUS("Prepared indexing method %s\n", str); + } free(str); if ( in != *m ) { |