aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.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/post-refinement.c
parent606a2cd5432fe342d73ab8f37a1b383142c52fdb (diff)
Work on making iteration work
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 4fa7ad47..0bd26f76 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -257,6 +257,7 @@ static double pr_iterate(struct image *image, const double *i_full,
gsl_vector *shifts;
int param;
Reflection *refl;
+ RefListIterator *iter;
RefList *reflections;
double max_shift;
@@ -266,9 +267,9 @@ static double pr_iterate(struct image *image, const double *i_full,
v = gsl_vector_calloc(NUM_PARAMS);
/* Construct the equations, one per reflection in this image */
- for ( refl = first_refl(reflections);
+ for ( refl = first_refl(reflections, &iter);
refl != NULL;
- refl = next_refl(refl) ) {
+ refl = next_refl(refl, iter) ) {
signed int hind, kind, lind;
signed int ha, ka, la;