aboutsummaryrefslogtreecommitdiff
path: root/src/merge.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-11-22 16:18:43 +0100
committerThomas White <taw@physics.org>2018-11-22 16:20:35 +0100
commitf30cc81c78493b3e0299f15a2ebf38aad2ba8e28 (patch)
treea7908f870eb316ef4f33f67df48ce704e32fe1ac /src/merge.c
parent516fe4e0275323b3439ceda0e8a92204b8479c6e (diff)
log_residual: Actually set n_used
Diffstat (limited to 'src/merge.c')
-rw-r--r--src/merge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/merge.c b/src/merge.c
index a655b2cc..1aaa272f 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -454,6 +454,7 @@ double log_residual(Crystal *cr, const RefList *full, int free,
fx = log(G) - B*s*s + log(p) + log(I_full) - log(I_partial) - log(L);
w = 1.0;
dev += w*fx*fx;
+ n_used++;
if ( fh != NULL ) {
fprintf(fh, "%4i %4i %4i %e %e\n",