From 4b2cc069a16bf564404d9f1020733dd2ec0b2275 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 30 Jan 2016 20:22:56 +0100 Subject: indexamajig: Restore --no-refine Adds yet another indexing option... --- src/indexamajig.c | 14 ++++++++++++-- src/process_image.h | 1 - 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/indexamajig.c b/src/indexamajig.c index a726c1b2..afc41a17 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -198,6 +198,7 @@ int main(int argc, char *argv[]) struct beam_params beam; int have_push_res = 0; int len; + int no_refine = 0; /* Defaults */ iargs.cell = NULL; @@ -241,7 +242,6 @@ int main(int argc, char *argv[]) iargs.fix_profile_r = -1.0; iargs.fix_bandwidth = -1.0; iargs.fix_divergence = -1.0; - iargs.predict_refine = 1; iargs.felix_options = NULL; /* Long options */ @@ -269,7 +269,7 @@ int main(int argc, char *argv[]) {"no-use-saturated", 0, &iargs.use_saturated, 0}, {"no-revalidate", 0, &iargs.no_revalidate, 1}, {"check-hdf5-snr", 0, &iargs.check_hdf5_snr, 1}, - {"no-refine", 0, &iargs.predict_refine, 0}, + {"no-refine", 0, &no_refine, 1}, /* Long-only options which don't actually do anything */ {"no-sat-corr", 0, &iargs.satcorr, 0}, @@ -589,12 +589,22 @@ int main(int argc, char *argv[]) } else { + int i = 0; + indm = build_indexer_list(indm_str); if ( indm == NULL ) { ERROR("Invalid indexer list '%s'\n", indm_str); return 1; } free(indm_str); + + /* If --no-refine, unset the refinement flag on all methods */ + if ( no_refine ) { + while ( indm[i] != INDEXING_NONE ) { + indm[i] &= ~INDEXING_REFINE; + i++; + } + } } /* Parse integration method */ diff --git a/src/process_image.h b/src/process_image.h index 60da7cb8..f474725c 100644 --- a/src/process_image.h +++ b/src/process_image.h @@ -88,7 +88,6 @@ struct index_args float fix_profile_r; float fix_bandwidth; float fix_divergence; - int predict_refine; char *felix_options; }; -- cgit v1.2.3