From 2046e1329f522eeafb0f979a97eb91adeebb7a14 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 13 Jun 2019 18:08:14 +0200 Subject: Add kernel customization point for velocity boundaries --- template/kernel.mako | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'template') diff --git a/template/kernel.mako b/template/kernel.mako index c76e5d9..b81d432 100644 --- a/template/kernel.mako +++ b/template/kernel.mako @@ -56,15 +56,7 @@ __kernel void collide_and_stream(__global __write_only float* f_a, float ${ccode(expr)} % endfor - if ( m == 2 ) { - u_0 = 0.0; - u_1 = 0.0; - } - - if ( m == 3 ) { - u_0 = 0.1; - u_1 = 0.0; - } + ${boundary_src} % for i, expr in enumerate(collide_helper): const float ${expr[0]} = ${ccode(expr[1])}; -- cgit v1.2.3