aboutsummaryrefslogtreecommitdiff
path: root/src/rejection.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-05 11:15:18 +0200
committerThomas White <taw@physics.org>2019-07-17 09:18:11 +0200
commit2e101d99268b467c1ab900121c4fba3bbab6f4b1 (patch)
tree8422bc6f9b5cdc65c6585b810455132ba5aa837d /src/rejection.c
parent62a4a8aab77be29c07edee7f3ea60847379106bc (diff)
Allow correct_reflection() to correct anything, not just intensities
Diffstat (limited to 'src/rejection.c')
-rw-r--r--src/rejection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rejection.c b/src/rejection.c
index 99ed767e..8d6c30bb 100644
--- a/src/rejection.c
+++ b/src/rejection.c
@@ -143,7 +143,7 @@ static int calculate_refl_mean_var(RefList *full)
G = crystal_get_osf(c->contrib_crystals[j]);
B = crystal_get_Bfac(c->contrib_crystals[j]);
- Ii = correct_reflection(c->contribs[j], G, B, res);
+ Ii = correct_reflection(get_intensity(c->contribs[j]), c->contribs[j], G, B, res);
Ex += Ii - K;
Ex2 += (Ii - K) * (Ii - K);
@@ -234,7 +234,7 @@ static double calculate_cchalf(RefList *template, RefList *full,
if ( get_partiality(exrefl) > MIN_PART_MERGE ) {
- double Ii = correct_reflection(exrefl, G, B, res);
+ double Ii = correct_reflection(get_intensity(exrefl), exrefl, G, B, res);
/* Remove contribution of this reflection */
Ex -= Ii - K;