aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-12 19:07:23 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:14 +0100
commit4cc7817179441f9029a412d714a9d3230c6c1544 (patch)
treea6612d53f1cf76ce5fb671633e2dc1c142ba2254 /src
parent6843124ff485d1f40836db08131b7579444eebff (diff)
Change variable name to avoid confusion
Diffstat (limited to 'src')
-rw-r--r--src/hrs-scaling.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index d5d96ffc..9c96b049 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -110,6 +110,7 @@ static double iterate_scale(struct image *images, int n,
double *vha_arr;
int h; /* Reflection index */
int frame;
+ int refidx;
M = gsl_matrix_calloc(n, n);
v = gsl_vector_calloc(n);
@@ -133,10 +134,10 @@ static double iterate_scale(struct image *images, int n,
uha_arr = malloc(n*sizeof(double));
vha_arr = malloc(n*sizeof(double));
- for ( h=0; h<n_ref; h++ ) {
+ for ( refidx=0; refidx<n_ref; refidx++ ) {
int a;
- struct refl_item *it = get_item(obs, h);
+ struct refl_item *it = get_item(obs, refidx);
const signed int h = it->h;
const signed int k = it->k;
const signed int l = it->l;
@@ -201,6 +202,7 @@ static double iterate_scale(struct image *images, int n,
gsl_vector_set(v, a, vval+vc);
}
+ progress_bar(refidx, n_ref, "Filling matrix");
}