aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/post-refinement.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 8e2241f6..af701575 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -119,12 +119,11 @@ double residual(Crystal *cr, const RefList *full, int free,
p = get_partiality(refl);
//if ( p < 0.2 ) continue;
- corr = (1.0/G) * exp(B*res*res) * get_lorentz(refl);
+ corr = G * exp(B*res*res) * get_lorentz(refl);
int1 = get_intensity(refl) * corr;
int2 = p*I_full;
w = 1.0;
-
num += fabs(int1 - int2) * w;
den += fabs(int1 + int2) * w/2.0;