diff options
author | Thomas White <taw@physics.org> | 2011-02-02 17:29:21 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:12 +0100 |
commit | 34ff94f5e4b2a4a31b78bdd3e7e0f4d6474c0153 (patch) | |
tree | bbd1945be2ce3312bb78fc50bde9a6345deb8bd0 /src/hrs-scaling.c | |
parent | b83926c3031606b4caad33c007e7a281252d9b6a (diff) |
Fix the final scaling bug
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r-- | src/hrs-scaling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c index a7a574f6..ae050417 100644 --- a/src/hrs-scaling.c +++ b/src/hrs-scaling.c @@ -148,7 +148,7 @@ static double s_uh(struct image *images, int n, double val = 0.0; for ( a=0; a<n; a++ ) { - double uha = s_vha(h, k, l, images, n, sym, a); + double uha = s_uha(h, k, l, images, n, sym, a); val += pow(images[a].osf, 2.0) * uha; } @@ -293,7 +293,7 @@ static double iterate_scale(struct image *images, int n, double shift = gsl_vector_get(shifts, a); STATUS("%3i: %5.2f\n", a, shift); - images[a].osf = shift; + images[a].osf += shift; if ( fabs(shift) > fabs(max_shift) ) { max_shift = fabs(shift); |