From db505e3822ebe3646c82cf1e937c100c0992891e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 2 Apr 2015 15:01:18 -0700 Subject: indexamajig: Reset indexing method if all crystals fail integration --- src/process_image.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/process_image.c') diff --git a/src/process_image.c b/src/process_image.c index 0c897df4..c00976e1 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -90,6 +90,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, int r; int ret; char *rn; + int n_crystals_left; image.features = NULL; image.data = NULL; @@ -243,6 +244,17 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, } + /* If there are no crystals left, set the indexing flag back to zero */ + n_crystals_left = 0; + for ( i=0; iint_meth, PMODEL_SCSPHERE, iargs->push_res, -- cgit v1.2.3