tAdded exec python function, which executes sphere with a target project - 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 2bedbd480e7b28012e20ca2b87df99fc452643a2
(DIR) parent 49277e1ca814ee2535c3e7eb96ddc972b010dd57
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Thu, 6 Sep 2012 13:33:34 +0200
Added exec python function, which executes sphere with a target project
Diffstat:
M python/sphere.py | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1065,6 +1065,12 @@ def visualize(project, method = 'energy', savefig = False, outformat = 'png'):
else:
plt.show()
+def exec(project):
+ """ Execute sphere with target project
+ """
+ subprocess.call("cd ..; ./sphere_*_X86_64 " + project, shell=True)
+
+
def status(project):
""" Check the status.dat file for the target project,