From c8d022b01819c81489a9d06fe05aaccb7d057a68 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 26 Feb 2010 17:53:07 +0100 Subject: Water intensity should be be counted only once overall per pixel --- src/diffraction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/diffraction.c') 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; } -- cgit v1.2.3