From 0309dfadf55b72023bb9d9131b80a701c211f684 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 25 Oct 2010 16:25:57 +0200 Subject: Add "bandwidth" to beam parameters file Also, fix previous commit. --- src/diffraction-gpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/diffraction-gpu.c') diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c index 7a5bef85..409178b9 100644 --- a/src/diffraction-gpu.c +++ b/src/diffraction-gpu.c @@ -23,11 +23,11 @@ #include "diffraction.h" #include "sfac.h" #include "cl-utils.h" +#include "beam-parameters.h" #define SAMPLING (4) -#define BWSAMPLING (1) -#define BANDWIDTH (0.0 / 100.0) +#define BWSAMPLING (10) #define SINC_LUT_ELEMENTS (4096) @@ -137,8 +137,8 @@ void get_diffraction_gpu(struct gpu_context *gctx, struct image *image, /* Calculate wavelength */ k = 1.0/image->lambda; /* Centre value */ - klow = k - k*(BANDWIDTH/2.0); /* Lower value */ - bwstep = k * BANDWIDTH / BWSAMPLING; + klow = k - k*(image->beam->bandwidth/2.0); /* Lower value */ + bwstep = k * image->beam->bandwidth / BWSAMPLING; /* Orientation */ orientation.s[0] = image->orientation.w; -- cgit v1.2.3