diff options
author | Thomas White <taw@physics.org> | 2015-03-12 18:00:24 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-03-12 18:00:24 +0100 |
commit | b771133192124344b8093d4ab171f02806e14190 (patch) | |
tree | 0fbde06266ac345a6053ac7db7bf41f84da6ef29 /src | |
parent | a2c3367a2578265269bb2c6386fb9168ee43b85a (diff) |
Fix correction for scaling
Diffstat (limited to 'src')
-rw-r--r-- | src/hrs-scaling.c | 5 |
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; |