aboutsummaryrefslogtreecommitdiff
path: root/data/diffraction.cl
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-20 16:20:42 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-20 16:20:42 +0100
commit97c4a2dd304761664304426a6bac6ccf3246a4d8 (patch)
tree8471a5d2fe62e79e92fa61e04a26377f7013b32f /data/diffraction.cl
parentdca8cc2962e2768a7cb69b5d9717b6e5c78be288 (diff)
Don't sum up ten times when one will suffice
Diffstat (limited to 'data/diffraction.cl')
-rw-r--r--data/diffraction.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/diffraction.cl b/data/diffraction.cl
index 7cb98034..b0f7b6b6 100644
--- a/data/diffraction.cl
+++ b/data/diffraction.cl
@@ -158,7 +158,7 @@ kernel void diffraction(global float2 *diff, global float *tt, float klow,
barrier(CLK_LOCAL_MEM_FENCE);
/* Leader thread sums the values */
- if ( lx + ly == 0 ) {
+ if ( lx + ly + lb == 0 ) {
int i;
float2 sum = (0.0, 0.0);