diff options
Diffstat (limited to 'data/diffraction.cl')
-rw-r--r-- | data/diffraction.cl | 7 |
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; |