From 5231a0f07fd5f72b88e2d9feb774de747f04536b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 13 Sep 2013 14:04:40 +0200 Subject: Add INDEXING_SIMULATION for streams made by partial_sim --- libcrystfel/src/index.c | 6 ++++++ libcrystfel/src/index.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 8307778d..951018e4 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -366,6 +366,10 @@ char *indexer_str(IndexingMethod indm) strcpy(str, "xds"); break; + case INDEXING_SIMULATION : + strcpy(str, "simulation"); + break; + default : ERROR("Unrecognised indexing method %i\n", indm & INDEXING_METHOD_MASK); @@ -374,6 +378,8 @@ char *indexer_str(IndexingMethod indm) } + if ( (indm & INDEXING_METHOD_MASK) == INDEXING_SIMULATION ) return str; + if ( indm & INDEXING_CHECK_CELL_COMBINATIONS ) { strcat(str, "-comb"); } else if ( indm & INDEXING_CHECK_CELL_AXES ) { diff --git a/libcrystfel/src/index.h b/libcrystfel/src/index.h index 31ee4339..8961c8aa 100644 --- a/libcrystfel/src/index.h +++ b/libcrystfel/src/index.h @@ -88,7 +88,8 @@ typedef enum { INDEXING_MOSFLM = 2, INDEXING_REAX = 3, INDEXING_GRAINSPOTTER = 4, - INDEXING_XDS = 5, + INDEXING_XDS = 5, + INDEXING_SIMULATION = 6, /* Bits at the top of the IndexingMethod are flags which modify the * behaviour of the indexer. */ -- cgit v1.2.3