aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction-gpu.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-27 12:12:04 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-27 12:12:04 +0100
commit732af8778a49cacbfffe3c451125be84d7f86ee2 (patch)
treec68b92d1c18c07c92e1318bc5d880feb6ba9f7a8 /src/diffraction-gpu.c
parent6170796e45768ed01b93304c1e363ef4a2b5a8fe (diff)
More tests for odd situations
Diffstat (limited to 'src/diffraction-gpu.c')
-rw-r--r--src/diffraction-gpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index 851ed70c..69d21912 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -245,6 +245,9 @@ void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
if ( val < 0.0 ) {
ERROR("Extracting negative at %i,%i\n", x, y);
}
+ if ( isnan(val) ) {
+ ERROR("Extracting NaN at %i,%i\n", x, y);
+ }
tt = tt_ptr[x + image->width*y];
image->data[x + image->width*y] = val;