aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-03-12 18:00:24 +0100
committerThomas White <taw@physics.org>2015-03-12 18:00:24 +0100
commitb771133192124344b8093d4ab171f02806e14190 (patch)
tree0fbde06266ac345a6053ac7db7bf41f84da6ef29
parenta2c3367a2578265269bb2c6386fb9168ee43b85a (diff)
Fix correction for scaling
-rw-r--r--src/hrs-scaling.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 01a40fbf..a07797b4 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -145,9 +145,10 @@ static void run_scale_job(void *vwargs, int cookie)
continue;
}
+ corr = get_lorentz(refl) / get_partiality(refl);
+
Ih = get_intensity(r);
- corr = get_partiality(refl) * get_lorentz(refl);
- Ihl = get_intensity(refl) / corr;
+ Ihl = get_intensity(refl) * corr;
if ( Ihl <= 0.0 ) continue;
if ( Ih <= 0.0 ) continue;