From 214b23a62b478acddaeb8d52f6d59909fa931c1e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 20 Aug 2018 17:37:08 +0200 Subject: Calculate the DeltaCChalf --- src/rejection.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rejection.c b/src/rejection.c index eaf87fb6..8cd4f718 100644 --- a/src/rejection.c +++ b/src/rejection.c @@ -216,8 +216,7 @@ static struct contribs *lookup_contribs(struct contributionlist *clist, } -static double calculate_cchalf(Crystal **crystals, int n, - struct contributionlist *clist, Crystal *exclude) +static double calculate_cchalf(struct contributionlist *clist, Crystal *exclude) { int i; double all_sum_mean = 0.0; @@ -272,12 +271,19 @@ static void check_deltacchalf(Crystal **crystals, int n, RefList *full) { struct contributionlist *clist; double cchalf; + int i; clist = find_all_contributions(crystals, n, full); - cchalf = calculate_cchalf(crystals, n, clist, NULL); + cchalf = calculate_cchalf(clist, NULL); STATUS("Overall CChalf = %f\n", cchalf); + for ( i=0; i