aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-09-11 19:12:29 +0200
committerAdrian Kummerlaender2019-09-11 19:12:29 +0200
commit89f21e0a1fceacea5ed2c2b02dfcaca76249aec2 (patch)
treedd64f77a29a304178d51dd2b61f24b3c139d197c /template
parentbf967631c146997d7673798318d94b0a186ec89d (diff)
downloadsymlbm_playground-89f21e0a1fceacea5ed2c2b02dfcaca76249aec2.tar
symlbm_playground-89f21e0a1fceacea5ed2c2b02dfcaca76249aec2.tar.gz
symlbm_playground-89f21e0a1fceacea5ed2c2b02dfcaca76249aec2.tar.bz2
symlbm_playground-89f21e0a1fceacea5ed2c2b02dfcaca76249aec2.tar.lz
symlbm_playground-89f21e0a1fceacea5ed2c2b02dfcaca76249aec2.tar.xz
symlbm_playground-89f21e0a1fceacea5ed2c2b02dfcaca76249aec2.tar.zst
symlbm_playground-89f21e0a1fceacea5ed2c2b02dfcaca76249aec2.zip
Cleanupink
Diffstat (limited to 'template')
-rw-r--r--template/kernel.mako6
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;
}