From 89f21e0a1fceacea5ed2c2b02dfcaca76249aec2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 11 Sep 2019 19:12:29 +0200 Subject: Cleanup --- template/kernel.mako | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'template/kernel.mako') 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; } -- cgit v1.2.3