From 5bb6d2e69535498a2e4aaf41c51c7566cd15a170 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 27 Jun 2017 14:33:57 +0200 Subject: 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... --- libcrystfel/src/index.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src') 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 ) { -- cgit v1.2.3