diff options
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 5 |
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; |