aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/diffraction.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/diffraction.cl b/data/diffraction.cl
index 7ccfa813..8b6ece99 100644
--- a/data/diffraction.cl
+++ b/data/diffraction.cl
@@ -124,7 +124,7 @@ float get_intensity(global float *intensities, float16 cell, float4 q)
k = (k>=0) ? k : k+IDIM;
l = (l>=0) ? l : l+IDIM;
- if ( (h>=IDIM) || (k>=IDIM) || (l>=IDIM) ) return 1000000.0;
+ if ( (h>=IDIM) || (k>=IDIM) || (l>=IDIM) ) return 0.0;
idx = h + (IDIM*k) + (IDIM*IDIM*l);