aboutsummaryrefslogtreecommitdiff
path: root/src/merge.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/merge.c
parentcbee076c3608dc19027f8f49c67ff01aef2e5b3f (diff)
Store scale factor in linear form
Diffstat (limited to 'src/merge.c')
-rw-r--r--src/merge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/merge.c b/src/merge.c
index 17e57c90..33221bda 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -189,7 +189,7 @@ static void run_merge_job(void *vwargs, int cookie)
}
/* Total (multiplicative) correction factor */
- corr = exp(-G) * exp(B*res*res) * get_lorentz(refl)
+ corr = (1.0/G) * exp(B*res*res) * get_lorentz(refl)
/ get_partiality(refl);
if ( isnan(corr) ) {
ERROR("NaN corr:\n");