From a122cc94e01bbfb34243d9db5268284a23aed116 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 9 Feb 2010 15:07:37 +0100 Subject: Weight bandwidth samples properly --- src/diffraction.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/diffraction.c') diff --git a/src/diffraction.c b/src/diffraction.c index bcd0e100..88b50d1f 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -23,9 +23,9 @@ #include "sfac.h" -#define SAMPLING (2) +#define SAMPLING (5) #define BWSAMPLING (10) -#define BANDWIDTH (0.015) +#define BANDWIDTH (1.0 / 100.0) static double lattice_factor(struct rvec q, double ax, double ay, double az, @@ -231,6 +231,8 @@ void get_diffraction(struct image *image, int na, int nb, int nc, int no_sfac) for ( kstep=0; kstepsfacs[x + image->width*y] += sw * f_molecule * f_lattice; + val = sw * kw * f_molecule * f_lattice; + image->sfacs[x + image->width*y] += val; } -- cgit v1.2.3