aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-07-23 17:55:53 +0200
committerThomas White <taw@physics.org>2012-07-23 17:55:53 +0200
commitedd421220c17abc12013a1cf41284a54e8a76c9f (patch)
treecfc5dc730835cf944a391c4bbc82ab086a2cb7bc
parentbbb7912346271e48e8081ccfeb1add14581aa3fc (diff)
process_hkl: Make --stop-after work
-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);