diff options
author | Adrian Kummerlaender | 2019-09-11 19:12:29 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2019-09-11 19:12:29 +0200 |
commit | 89f21e0a1fceacea5ed2c2b02dfcaca76249aec2 (patch) | |
tree | dd64f77a29a304178d51dd2b61f24b3c139d197c /template | |
parent | bf967631c146997d7673798318d94b0a186ec89d (diff) | |
download | symlbm_playground-ink.tar symlbm_playground-ink.tar.gz symlbm_playground-ink.tar.bz2 symlbm_playground-ink.tar.lz symlbm_playground-ink.tar.xz symlbm_playground-ink.tar.zst symlbm_playground-ink.zip |
Cleanupink
Diffstat (limited to 'template')
-rw-r--r-- | template/kernel.mako | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/template/kernel.mako b/template/kernel.mako index d0d6d30..89000a9 100644 --- a/template/kernel.mako +++ b/template/kernel.mako @@ -158,9 +158,9 @@ __kernel void update_particles(__global __read_only float4* moments, particle.y += moment.z; particle.z += min(particle.x, particle.y) * aging; } else { - float2 orig = init_particles[pid]; - particle.x = orig.x; - particle.y = orig.y; + float2 init_particle = init_particles[pid]; + particle.x = init_particle.x; + particle.y = init_particle.y; particle.z = particle.z-1.0; } |