aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/process_hkl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index f9e9af99..e06270bc 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -309,6 +309,10 @@ static void merge_all(FILE *fh, RefList *model, RefList *reference,
progress_bar(n_patterns, n_total_patterns-config_startafter,
"Merging");
+ if ( config_stopafter ) {
+ if ( n_patterns == config_stopafter ) break;
+ }
+
} while ( rval == 0 );
for ( refl = first_refl(model, &iter);