tSphere unsuccessfull return status changed to warning - 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 89410ac23699c2d57aac5c6ac5b99bb8793e7670
(DIR) parent 54d689a2ba2ccbed85b742b66b1c33c13bb34f28
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Thu, 11 Apr 2013 10:29:16 +0200
Sphere unsuccessfull return status changed to warning
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@@ -1183,7 +1183,7 @@ class Spherebin:
status = subprocess.call("cd ..; " + valgrindbin + cudamemchk + "./sphere " + quiet + dryarg + "input/" + self.sid + ".bin " + stdout, shell=True)
if (status != 0):
- raise Exception("Error, the sphere run returned with status " + str(status))
+ print("Warning: the sphere run returned with status " + str(status))
def torqueScript(self,
email="adc@geo.au.dk",
t@@ -1456,7 +1456,7 @@ class Spherebin:
plt.figure(figsize=[4, 4])
ax = plt.subplot(111)
ax.plot(porosity, depth,
- c='black', linestyle='-', linewidth=1.4)
+ c='black', linestyle='-', linewidth=1.4)
ax.set_xlabel("Horizontally averaged porosity, [-]")
ax.set_ylabel("Vertical position, [m]")
plt.savefig(self.sid + '-porositiy.' + outformat, transparent=True)