diff options
author | Thomas White <taw@physics.org> | 2010-11-22 16:56:32 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:07 +0100 |
commit | 24746060a47d220c016f34e3598665817e3d407d (patch) | |
tree | 606ca7847fe950f4222e9eac111fe76de39b6bd6 /src/post-refinement.c | |
parent | df8c88903686266ae406dc8842d4e5cf2c4e3b95 (diff) |
Allow selected reflections to change
This partially reverts a2611c8c2acf977eddac2d1a372760383d395da5.
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 537c430b..69a9563c 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -274,7 +274,6 @@ double pr_iterate(struct image *image, double *i_full, const char *sym, gsl_vector *shifts; int h, param; struct cpeak *spots = *pspots; - struct cpeak *spots_old; M = gsl_matrix_calloc(NUM_PARAMS, NUM_PARAMS); v = gsl_vector_calloc(NUM_PARAMS); @@ -351,9 +350,8 @@ double pr_iterate(struct image *image, double *i_full, const char *sym, gsl_vector_free(v); gsl_vector_free(shifts); - spots_old = spots; - spots = find_intersections(image, image->indexed_cell, n, 0, spots_old); - free(spots_old); + free(spots); + spots = find_intersections(image, image->indexed_cell, n, 0); *pspots = spots; return mean_partial_dev(image, spots, *n, sym, i_full, NULL); } |