From 732af8778a49cacbfffe3c451125be84d7f86ee2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 27 Feb 2010 12:12:04 +0100 Subject: More tests for odd situations --- src/diffraction-gpu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/diffraction-gpu.c') 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; -- cgit v1.2.3