tcheck wmode in sb object - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 593ddfb3e6aa44ab70d924e47a933a15128f381a
(DIR) parent 086b1f997aad6613543fe2753babbcffdf93d9b4
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 27 Jan 2015 11:19:37 +0100
check wmode in sb object
Diffstat:
M python/sphere.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -6048,7 +6048,7 @@ class sim:
# use largest difference in p from 0 as +/- limit on colormap
p_ext = numpy.max(numpy.abs(pres))
- if self.wmode[0] == 3:
+ if sb.wmode[0] == 3:
x = t
else:
x = shear_strain
t@@ -6063,7 +6063,7 @@ class sim:
ax.set_ylim([zpos_c[0], sb.w_x[0]])
else:
ax.set_ylim([zpos_c[0], zpos_c[-1]])
- if self.wmode[0] == 3:
+ if sb.wmode[0] == 3:
ax.set_xlabel('Time $t$ [s]')
else:
ax.set_xlabel('Shear strain $\\gamma$ [-]')