aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-19 10:47:55 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit04488edf99249ebe95bf6c7f3a18b67cb74576bb (patch)
tree16707701bd52a5bd6ce0fa14a6b7a0db7e586387 /src/post-refinement.c
parent203f2c33f18160ac4b61572ebdc6fa031f57eaba (diff)
Weight reflections by partiality in residual
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 34d7a462..92bcd271 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -122,7 +122,7 @@ double residual(Crystal *cr, const RefList *full, int free,
corr = G * exp(B*res*res) * get_lorentz(refl);
int1 = get_intensity(refl) * corr;
int2 = p*I_full;
- w = 1.0;
+ w = p;
num += fabs(int1 - int2) * w;
den += fabs(int1 + int2) * w/2.0;