From f30cc81c78493b3e0299f15a2ebf38aad2ba8e28 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 22 Nov 2018 16:18:43 +0100 Subject: log_residual: Actually set n_used --- src/merge.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/merge.c') 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", -- cgit v1.2.3