diff options
author | Thomas White <taw@physics.org> | 2010-10-26 14:57:51 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:03 +0100 |
commit | 18e61c8671d72f56f6203fd49740e501cb53b784 (patch) | |
tree | f00dd03a9127ee98b32938318a720ae472156267 /data/diffraction.cl | |
parent | 2bcb74ccca7bb149b49ab004363ca5aae5a0e4cb (diff) |
Return zero if reflection is out of range
Diffstat (limited to 'data/diffraction.cl')
-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 fe0604d8..7ccfa813 100644 --- a/data/diffraction.cl +++ b/data/diffraction.cl @@ -117,7 +117,7 @@ float get_intensity(global float *intensities, float16 cell, float4 q) /* Return a silly value if indices are out of range */ if ( (abs(h) > INDMAX) || (abs(k) > INDMAX) || (abs(l) > INDMAX) ) { - return 1000000.0; + return 0.0; } h = (h>=0) ? h : h+IDIM; |