From e2b00f4ec963060be98939c7b0d12d6c00e50a02 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 31 Oct 2019 13:13:00 +0100 Subject: Call symbolic generator inside code templates This paves the way for dropping in other LBM collision models. As a side benefit the default momenta calulcation is now fully inlined where possible. --- boltzgen/kernel/template/momenta_boundary.cl.mako | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boltzgen/kernel/template/momenta_boundary.cl.mako') diff --git a/boltzgen/kernel/template/momenta_boundary.cl.mako b/boltzgen/kernel/template/momenta_boundary.cl.mako index f5edb61..4e29601 100644 --- a/boltzgen/kernel/template/momenta_boundary.cl.mako +++ b/boltzgen/kernel/template/momenta_boundary.cl.mako @@ -1,3 +1,8 @@ +<% +moments_subexpr, moments_assignment = model.moments() +collision_subexpr, collision_assignment = model.bgk(f_eq = model.equilibrium(resolve_moments = False)) +%> + <%def name="momenta_boundary(name, param)"> __kernel void ${name}_momenta_boundary_gid( __global ${float_type}* f_next, -- cgit v1.2.3