aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-07-25 20:59:06 +0200
committerAdrian Kummerlaender2019-07-25 20:59:06 +0200
commitbcc087a36ea7d84ac61a2c756458a208f6bc3ff3 (patch)
tree4b8870b16b9295bfea62192f1b9e2c85e1d8a730 /template
parentb71608dd58d8ce38bc9f56615d7c2da1606975d1 (diff)
downloadsymlbm_playground-bcc087a36ea7d84ac61a2c756458a208f6bc3ff3.tar
symlbm_playground-bcc087a36ea7d84ac61a2c756458a208f6bc3ff3.tar.gz
symlbm_playground-bcc087a36ea7d84ac61a2c756458a208f6bc3ff3.tar.bz2
symlbm_playground-bcc087a36ea7d84ac61a2c756458a208f6bc3ff3.tar.lz
symlbm_playground-bcc087a36ea7d84ac61a2c756458a208f6bc3ff3.tar.xz
symlbm_playground-bcc087a36ea7d84ac61a2c756458a208f6bc3ff3.tar.zst
symlbm_playground-bcc087a36ea7d84ac61a2c756458a208f6bc3ff3.zip
Dampen channel inflow
Diffstat (limited to 'template')
-rw-r--r--template/kernel.mako3
1 files changed, 2 insertions, 1 deletions
diff --git a/template/kernel.mako b/template/kernel.mako
index ceb7a7a..00a4345 100644
--- a/template/kernel.mako
+++ b/template/kernel.mako
@@ -38,7 +38,8 @@ def neighbor_offset(c_i):
__kernel void collide_and_stream(__global __write_only ${float_type}* f_next,
__global __read_only ${float_type}* f_prev,
- __global __read_only int* material)
+ __global __read_only int* material,
+ unsigned int time)
{
const unsigned int gid = ${gid()};