aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-26 17:53:07 +0100
committerThomas White <taw@physics.org>2010-02-26 17:53:07 +0100
commitc8d022b01819c81489a9d06fe05aaccb7d057a68 (patch)
treee30c6046d513a8862fe945451121f98b14ef5a2b /src
parent7d8662ffe897dc2438141ecc8848863bad9b9d92 (diff)
Water intensity should be be counted only once overall per pixel
Diffstat (limited to 'src')
-rw-r--r--src/diffraction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index f577be45..5938c307 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -256,7 +256,7 @@ void get_diffraction(struct image *image, int na, int nb, int nc, int no_sfac,
/* Add intensity contribution from water */
image->data[x + image->width*y] += water_diffraction(q,
ph_lambda_to_en(image->lambda),
- BEAM_RADIUS, WATER_RADIUS);
+ BEAM_RADIUS, WATER_RADIUS) * sw;
}