diff options
author | Thomas White <taw@physics.org> | 2010-07-14 17:58:55 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:53 +0100 |
commit | 6a5422356c15962726df2261aa53354b0ff12662 (patch) | |
tree | b6c5ae80b837bda38957cef07816b511515ffdcb /src/diffraction-gpu.c | |
parent | 6a476e010468f27e02df6bb90a1ea197bd9d039d (diff) |
Reduce the scope of "count"
Lists of counts had pervaded every corner of CrystFEL, being used as markers
for the presence of reflections. Now we have a better way of doing this,
the ReflItemList, and few parts of the suite apart from process_hkl have any
business knowing how many observations were made of a particular reflection.
Diffstat (limited to 'src/diffraction-gpu.c')
-rw-r--r-- | src/diffraction-gpu.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c index 86594a47..7a5bef85 100644 --- a/src/diffraction-gpu.c +++ b/src/diffraction-gpu.c @@ -342,8 +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, - const double *intensities, - const unsigned int *counts) + const double *intensities) { struct gpu_context *gctx; cl_uint nplat; @@ -404,11 +403,7 @@ struct gpu_context *setup_gpu(int no_sfac, struct image *image, intensities_ptr = malloc(intensities_size); if ( intensities != NULL ) { for ( i=0; i<IDIM*IDIM*IDIM; i++ ) { - if ( counts[i] == 1 ) { - intensities_ptr[i] = intensities[i]; - } else { - intensities_ptr[i] = 1.0e20; - } + intensities_ptr[i] = intensities[i]; } } else { for ( i=0; i<IDIM*IDIM*IDIM; i++ ) { |