aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-08 19:10:27 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:13 +0100
commite980ed54dc29e025587aba47390727c500aec8f1 (patch)
treea818f47cf8f00c034c59e7df8d825965d217d1c9 /src/hrs-scaling.c
parent606a2cd5432fe342d73ab8f37a1b383142c52fdb (diff)
Work on making iteration work
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r--src/hrs-scaling.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index d5d96ffc..9f1ada75 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -52,6 +52,7 @@ static void s_uhavha(signed int hat, signed int kat, signed int lat,
if ( !get_scalable(refl) ) continue;
ic = get_intensity(refl) / get_partiality(refl);
+ STATUS("%f / %f = %f\n", get_intensity(refl), get_partiality(refl), ic);
sigi = sqrt(fabs(ic));
uha_val += 1.0 / pow(sigi, 2.0);
@@ -117,6 +118,7 @@ static double iterate_scale(struct image *images, int n,
uh_arr = new_list_intensity();
vh_arr = new_list_intensity();
+ STATUS("%i\n", n_ref);
for ( h=0; h<n_ref; h++ ) {
double uh, vh;
@@ -124,6 +126,7 @@ static double iterate_scale(struct image *images, int n,
uh = s_uh(images, n, it->h, it->k, it->l, sym);
vh = s_vh(images, n, it->h, it->k, it->l, sym);
+ STATUS("%f %f\n", uh, vh);
set_intensity(uh_arr, it->h, it->k, it->l, uh);
set_intensity(vh_arr, it->h, it->k, it->l, vh);