tUnfinished torqueScript function added - sphere - GPU-based 3D discrete elemen… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 2cc2936f46b7a878f6398e0ec30edcae940e2e3d | |
parent 2c93b68798d09861455c6f050c0f4374cbf57574 | |
Author: Anders Damsgaard Christensen <[email protected]> | |
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(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -998,6 +998,27 @@ class Spherebin: | |
subprocess.call("cd ..; ./sphere_* " + quiet + dryarg + "input/" + sel… | |
+ def torqueScript(self, | |
+ e-mail="[email protected]", | |
+ 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… | |
+ | |
+ | |
def status(project): | |
""" Check the status.dat file for the target project, | |
and return the last file numer. |