aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-26 15:51:29 +0200
committerThomas White <taw@physics.org>2018-02-27 17:12:41 +0100
commitdc854c240913d4c179f49c35f7b869e2c39b86c7 (patch)
tree159a94333cce8f237093e6b4621cde869871ddb4 /src/post-refinement.c
parentcbee076c3608dc19027f8f49c67ff01aef2e5b3f (diff)
Store scale factor in linear form
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 5624b15d..579db7e4 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -115,7 +115,7 @@ double residual(Crystal *cr, const RefList *full, int free,
p = get_partiality(refl);
//if ( p < 0.2 ) continue;
- corr = exp(-G) * exp(B*res*res) * get_lorentz(refl);
+ corr = (1.0/G) * exp(B*res*res) * get_lorentz(refl);
int1 = get_intensity(refl) * corr;
int2 = p*I_full;
w = 1.0;