diff options
author | Thomas White <taw@physics.org> | 2011-10-07 16:31:28 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:39 +0100 |
commit | 3c21788dc0f08f42ab65c740f62b8cfc74ca7fe3 (patch) | |
tree | 85465b0436a93104c2e721b7f2e9e31aa29501d6 | |
parent | 986f4673fd2a2e77688f22fea83fd7b6879f9b6b (diff) |
Clamp divergence at zero
-rw-r--r-- | src/post-refinement.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index b96aba66..5a6ba4dc 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -217,6 +217,7 @@ static void apply_shift(struct image *image, int k, double shift) case REF_DIV : image->div += shift; + if ( image->div < 0.0 ) image->div = 0.0; break; case REF_R : |