tadded error message if undefined visualization method is called - 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 8fc31f7a414c45d4873d81dab38d5d1dda71e829
(DIR) parent 4436ce6f6155e61db1ea361d3119c1275744c095
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Tue, 4 Dec 2012 13:33:26 +0100
added error message if undefined visualization method is called
Diffstat:
M python/sphere.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1309,6 +1309,8 @@ def visualize(project, method = 'energy', savefig = True, outformat = 'png'):
ax2.set_ylabel('Dilation [m]')
ax2.plot(xdisp, dilation, '+-')
ax2.grid()
+ else :
+ print("Visualization type '" + method + "' not understood")
else :
# Write values to textfile