aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-10-12 12:25:50 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:39 +0100
commit7fbf10ef647003fd33677dec9d7c00e24a5a6fe8 (patch)
treee0e054803fb1c6cc475a11d077eee6b62e6cc1ff /src/hrs-scaling.c
parentc4e91973d72f159a8e3be0e5e45580f54352c5ed (diff)
Style
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r--src/hrs-scaling.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index b28aae3d..c6a5a1b3 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -210,7 +210,7 @@ static void run_merge_job(void *vwargs, int cookie)
signed int h, k, l;
double num, den;
int red;
- double Ihl, esd;
+ double Ihl, esd, pcalc;
if ( !get_scalable(refl) ) continue;
@@ -233,8 +233,9 @@ static void run_merge_job(void *vwargs, int cookie)
red = get_redundancy(f);
}
- Ihl = get_intensity(refl) / get_partiality(refl);
- esd = get_esd_intensity(refl) / get_partiality(refl);
+ pcalc = get_partiality(refl);
+ Ihl = get_intensity(refl) / pcalc;
+ esd = get_esd_intensity(refl) / pcalc;
num += (Ihl/G) / pow(esd/G, 2.0);
den += 1.0 / pow(esd/G, 2.0);