diff options
author | Thomas White <taw@physics.org> | 2010-11-12 16:45:45 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:05 +0100 |
commit | e0b3bc1c52fcb530fa16dc979d75699a5304cea7 (patch) | |
tree | 70134ab650ebdf280544a1717d23b033fe746776 | |
parent | 55b16c49424cd61d6a00a167862c390c274c307e (diff) |
Use zero instead of a silly value when outside resolution cutoff
-rw-r--r-- | data/diffraction.cl | 2 |
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); |