aboutsummaryrefslogtreecommitdiff
path: root/implosion.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-30 19:13:36 +0200
committerAdrian Kummerlaender2019-06-30 19:13:36 +0200
commit3ab16a1ac79e0781563c7564cd678a8c87474486 (patch)
treefd30839cda1d5ecf66d0a5683632b22b75e1dd70 /implosion.py
parentb3acd514c5d629781e816b847aff9891015fa7bd (diff)
downloadsymlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.gz
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.bz2
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.lz
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.xz
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.zst
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.zip
Move OpenCL buffers into Memory class
Diffstat (limited to 'implosion.py')
-rw-r--r--implosion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/implosion.py b/implosion.py
index 370ef92..245f2bb 100644
--- a/implosion.py
+++ b/implosion.py
@@ -19,7 +19,7 @@ def generate_moment_plots(lattice, moments):
velocity = numpy.ndarray(shape=tuple(reversed(lattice.geometry.inner_size())))
for x, y in lattice.geometry.inner_cells():
- velocity[y-1,x-1] = numpy.sqrt(m[1,lattice.gid(x,y)]**2 + m[2,lattice.gid(x,y)]**2)
+ velocity[y-1,x-1] = numpy.sqrt(m[1,lattice.memory.gid(x,y)]**2 + m[2,lattice.memory.gid(x,y)]**2)
plt.figure(figsize=(10, 10))
plt.imshow(velocity, origin='lower', cmap=plt.get_cmap('seismic'))