aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
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;