diff options
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; } |