From 4ecbf9d41ece5e412e3fada32a3998775ffd9676 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 19 Feb 2010 15:11:44 +0100 Subject: Honour detector panels in GPU calculation --- data/diffraction.cl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'data') 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; -- cgit v1.2.3