aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-15 17:55:37 +0200
committerThomas White <taw@physics.org>2010-04-20 11:23:16 +0200
commit85a38780608a501dd968c92a311f4a988521e1ca (patch)
tree89b6a126143147f043b9c837b4c80cc8ac80c008 /src
parent319dbad7371d833061002ed44d1be5fc81a4df95 (diff)
Use new access method for OpenCL vectors
Diffstat (limited to 'src')
-rw-r--r--src/diffraction-gpu.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index 83445405..6d576287 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -131,9 +131,9 @@ void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
}
cell_get_cartesian(ucell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
- cell[0] = ax; cell[1] = ay; cell[2] = az;
- cell[3] = bx; cell[4] = by; cell[5] = bz;
- cell[6] = cx; cell[7] = cy; cell[8] = cz;
+ cell.s[0] = ax; cell.s[1] = ay; cell.s[2] = az;
+ cell.s[3] = bx; cell.s[4] = by; cell.s[5] = bz;
+ cell.s[6] = cx; cell.s[7] = cy; cell.s[8] = cz;
/* Calculate wavelength */
k = 1.0/image->lambda; /* Centre value */
@@ -141,15 +141,15 @@ void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
bwstep = k * BANDWIDTH / BWSAMPLING;
/* Orientation */
- orientation[0] = image->orientation.w;
- orientation[1] = image->orientation.x;
- orientation[2] = image->orientation.y;
- orientation[3] = image->orientation.z;
-
- ncells[0] = na;
- ncells[1] = nb;
- ncells[2] = nc;
- ncells[3] = 0; /* unused */
+ orientation.s[0] = image->orientation.w;
+ orientation.s[1] = image->orientation.x;
+ orientation.s[2] = image->orientation.y;
+ orientation.s[3] = image->orientation.z;
+
+ ncells.s[0] = na;
+ ncells.s[1] = nb;
+ ncells.s[2] = nc;
+ ncells.s[3] = 0; /* unused */
/* Ensure all required LUTs are available */
check_sinc_lut(gctx, na);