diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-02-27 12:12:04 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-02-27 12:12:04 +0100 |
commit | 732af8778a49cacbfffe3c451125be84d7f86ee2 (patch) | |
tree | c68b92d1c18c07c92e1318bc5d880feb6ba9f7a8 /src/diffraction-gpu.c | |
parent | 6170796e45768ed01b93304c1e363ef4a2b5a8fe (diff) |
More tests for odd situations
Diffstat (limited to 'src/diffraction-gpu.c')
-rw-r--r-- | src/diffraction-gpu.c | 3 |
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; |