aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-17 15:51:54 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:29 +0100
commit65d8b1ac000bba28ed3139a82adba6c80f29e34b (patch)
tree5fcc0f35a20fa6a49965b987fab677a175b961ee
parentf8333ae2c37bbbc2fd062a9da7f28e3b1b4d12a9 (diff)
Some more terms go to zero if a reference is available
-rw-r--r--src/hrs-scaling.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 171cd305..8a7c2099 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -319,6 +319,8 @@ static double iterate_scale(struct image *images, int n,
mc = (rha*vhb + vha*rhb - vha*vhb) / uh;
if ( isnan(mc) ) mc = 0.0; /* 0 / 0 = 0 */
+ if ( reference != NULL ) mc = 0.0;
+
if ( a == b ) {
mc += pow(Ih, 2.0) * uha;
}