diff options
author | Thomas White <taw@physics.org> | 2011-04-29 11:48:20 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:24 +0100 |
commit | 78b4c3e45a23768c8c586cb26e1d00c9e8403392 (patch) | |
tree | 76abb81a9f04bd1999fb35f2699caa469f9466ae | |
parent | 9fb82d53ea681b3cd35ae3bdbde934941c4f0794 (diff) |
Avoid calculating more gradients than necessary
-rw-r--r-- | src/post-refinement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 19081360..a2438f22 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -326,7 +326,7 @@ static double pr_iterate(struct image *image, const RefList *full, } - gr = gradient(image, k, refl, image->profile_radius); + gr = gradients[k]; v_c = delta_I * I_full * gr; v_curr = gsl_vector_get(v, k); gsl_vector_set(v, k, v_curr + v_c); |