traise exception if unknown type is specified - sphere - GPU-based 3D discrete … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 69c1afc4ac0f4239d9f3b875c96a2962fae2076a | |
parent ff9b1797587c11d741b216e15ea3ac180366b9b2 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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): | |
''' |