aboutsummaryrefslogtreecommitdiff
path: root/boltzgas/simulation.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-03-25 21:32:50 +0100
committerAdrian Kummerlaender2020-03-25 21:32:50 +0100
commita162bc34bcd6dbc8ba57ed46c886bc9c539f66a3 (patch)
tree8fe9365107915e97153d00677298722b81ebeecb /boltzgas/simulation.py
parent9b052593e773a8d101ae1195d5208325dc2cd525 (diff)
downloadboltzgas-a162bc34bcd6dbc8ba57ed46c886bc9c539f66a3.tar
boltzgas-a162bc34bcd6dbc8ba57ed46c886bc9c539f66a3.tar.gz
boltzgas-a162bc34bcd6dbc8ba57ed46c886bc9c539f66a3.tar.bz2
boltzgas-a162bc34bcd6dbc8ba57ed46c886bc9c539f66a3.tar.lz
boltzgas-a162bc34bcd6dbc8ba57ed46c886bc9c539f66a3.tar.xz
boltzgas-a162bc34bcd6dbc8ba57ed46c886bc9c539f66a3.tar.zst
boltzgas-a162bc34bcd6dbc8ba57ed46c886bc9c539f66a3.zip
Move everything into main function
Diffstat (limited to 'boltzgas/simulation.py')
-rw-r--r--boltzgas/simulation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/boltzgas/simulation.py b/boltzgas/simulation.py
index a4ae4da..6af9069 100644
--- a/boltzgas/simulation.py
+++ b/boltzgas/simulation.py
@@ -89,7 +89,7 @@ class HardSphereSimulation:
self.tick = True
kernelargs = (self.cl_particle_position_b, self.cl_particle_velocity_b, self.cl_particle_position_a, self.cl_particle_velocity_a, self.cl_last_collide)
- self.program.evolve(self.queue, (self.n_particles,), None, *(kernelargs))
+ self.program.evolve(self.queue, (self.n_particles,), None, *(kernelargs)).wait()
def gl_draw_particles(self):
gl.glEnableClientState(gl.GL_VERTEX_ARRAY)