aboutsummaryrefslogtreecommitdiff
path: root/data/diffraction.cl
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-19 15:11:44 +0100
committerThomas White <taw@physics.org>2010-02-19 15:11:44 +0100
commit4ecbf9d41ece5e412e3fada32a3998775ffd9676 (patch)
tree20fa15a45084b391b4799e01a4d4e51dbba5ac33 /data/diffraction.cl
parent803fbcf98c0c68cc5000331d6e00f9297a1cf5f0 (diff)
Honour detector panels in GPU calculation
Diffstat (limited to 'data/diffraction.cl')
-rw-r--r--data/diffraction.cl7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/diffraction.cl b/data/diffraction.cl
index ade56484..82a4adcf 100644
--- a/data/diffraction.cl
+++ b/data/diffraction.cl
@@ -130,11 +130,12 @@ float2 get_sfac(global float2 *sfacs, float16 cell, float4 q)
kernel void diffraction(global float2 *diff, global float *tt, float k,
int w, float cx, float cy,
float res, float clen, float16 cell,
- global float2 *sfacs, float4 z, int4 ncells)
+ global float2 *sfacs, float4 z, int4 ncells,
+ int xmin, int ymin)
{
float ttv;
- const int x = get_global_id(0);
- const int y = get_global_id(1);
+ const int x = get_global_id(0) + xmin;
+ const int y = get_global_id(1) + ymin;
float f_lattice;
float2 f_molecule;