aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hrs-scaling.c')
-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");
}