From e0b3bc1c52fcb530fa16dc979d75699a5304cea7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 12 Nov 2010 16:45:45 +0100 Subject: Use zero instead of a silly value when outside resolution cutoff --- data/diffraction.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3