From f15dc3d8b88c7a4a7054309fbcd5756de8a7fc0b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 27 Mar 2010 20:10:12 +0100 Subject: Make it obvious, when using GPU simulation, if a required reflection is unavailable --- src/diffraction-gpu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/diffraction-gpu.c') diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c index e142035d..91d6334f 100644 --- a/src/diffraction-gpu.c +++ b/src/diffraction-gpu.c @@ -342,7 +342,7 @@ void get_diffraction_gpu(struct gpu_context *gctx, struct image *image, /* Setup the OpenCL stuff, create buffers, load the structure factor table */ struct gpu_context *setup_gpu(int no_sfac, struct image *image, - double *intensities) + double *intensities, unsigned int *counts) { struct gpu_context *gctx; cl_uint nplat; @@ -403,7 +403,11 @@ struct gpu_context *setup_gpu(int no_sfac, struct image *image, intensities_ptr = malloc(intensities_size); if ( intensities != NULL ) { for ( i=0; i