From 5777736c952477d2bf912739862a66d1c0089cbc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 12 Mar 2015 11:00:31 +0100 Subject: Show changes in B factors and rejected crystals --- src/hrs-scaling.c | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c index 1c0281a4..e21c9066 100644 --- a/src/hrs-scaling.c +++ b/src/hrs-scaling.c @@ -425,25 +425,33 @@ static void reset_scaling_flag(Crystal *crystal) } -static int test_convergence(double *old_osfs, int n, Crystal **crystals) +static int test_convergence(double *old_osfs, double *old_Bs, int n, + Crystal **crystals) { int i; - double total_change = 0.0; - double mean_change; + double total_osf_change = 0.0; + double total_B_change = 0.0; int n_change = 0; + int n_reject = 0; for ( i=0; i