tUnfinished torqueScript function added - 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 2cc2936f46b7a878f6398e0ec30edcae940e2e3d
(DIR) parent 2c93b68798d09861455c6f050c0f4374cbf57574
(HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Thu, 13 Dec 2012 22:41:25 +0100
Unfinished torqueScript function added
Diffstat:
M python/sphere.py | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -998,6 +998,27 @@ class Spherebin:
subprocess.call("cd ..; ./sphere_* " + quiet + dryarg + "input/" + self.sid + ".bin " + stdout, shell=True)
+ def torqueScript(self,
+ e-mail="adc@geo.au.dk",
+ e-mail-alerts="ae",
+ walltime="8:00:00"):
+ 'Create job script for the Torque queue manager for the binary'
+
+ filename = self.sid + ".sh"
+ fh = None
+ try :
+ fh = open(filename, "w")
+
+ # write stuff
+
+ finally :
+ if fh is not None:
+ fh.close()
+
+
+
+
+
def render(self,
method = "pres",
max_val = 1e3,
t@@ -1350,6 +1371,8 @@ def run(binary, verbose=True, hideinputfile=False):
stdout = " > /dev/null"
subprocess.call("cd ..; ./sphere_* " + quiet + " " + binary + " " + stdout, shell=True)
+
+
def status(project):
""" Check the status.dat file for the target project,
and return the last file numer.