aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-11-05 23:20:44 +0100
committerAdrian Kummerlaender2019-11-05 23:20:44 +0100
commitf3035c9d8d5a643ee7e9e86a58688c4b2f86319c (patch)
treeadeac947b9654397c966699e3c85296cd27d0eb9
parent02cb01c94fe26d425371ab74feeb50e8a9bf6bf6 (diff)
downloadboltzgen-f3035c9d8d5a643ee7e9e86a58688c4b2f86319c.tar
boltzgen-f3035c9d8d5a643ee7e9e86a58688c4b2f86319c.tar.gz
boltzgen-f3035c9d8d5a643ee7e9e86a58688c4b2f86319c.tar.bz2
boltzgen-f3035c9d8d5a643ee7e9e86a58688c4b2f86319c.tar.xz
boltzgen-f3035c9d8d5a643ee7e9e86a58688c4b2f86319c.zip
Fix OpenCL vector indexing
-rw-r--r--boltzgen/kernel/template/momenta_boundary.cl.mako2
1 files changed, 1 insertions, 1 deletions
diff --git a/boltzgen/kernel/template/momenta_boundary.cl.mako b/boltzgen/kernel/template/momenta_boundary.cl.mako
index f22d950..9581a14 100644
--- a/boltzgen/kernel/template/momenta_boundary.cl.mako
+++ b/boltzgen/kernel/template/momenta_boundary.cl.mako
@@ -26,7 +26,7 @@ collision_subexpr, collision_assignment = model.collision(f_eq = model.equilibri
<%call expr="momenta_boundary('velocity', [('%s%d' % (float_type, descriptor.d), 'velocity')])">
${float_type} ${sympy.ccode(moments_assignment[0])}
% for i, expr in enumerate(moments_assignment[1:]):
- ${float_type} ${expr.lhs} = velocity[${i}];
+ ${float_type} ${expr.lhs} = velocity.${['x','y','z'][i]};
% endfor
</%call>