traise exception if unknown type is specified - 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 69c1afc4ac0f4239d9f3b875c96a2962fae2076a
(DIR) parent ff9b1797587c11d741b216e15ea3ac180366b9b2
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 24 Feb 2015 10:49:27 +0100
raise exception if unknown type is specified
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@@ -3754,6 +3754,8 @@ class sim:
*self.time_current[0])
elif type == 'effective':
return self.w_force[0]/(self.L[0]*self.L[1])
+ else:
+ raise Exception('Normal stress type ' + type + ' not understood')
def volume(self, idx):
'''