[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
s.popinet at niwa.co.nz
Fri May 15 02:52:15 UTC 2009
The following commit has been merged in the upstream branch:
commit cef189933e7a4da9aedf3096fed5ca3eab43114a
Author: Stephane Popinet <s.popinet at niwa.co.nz>
Date: Thu Jul 7 07:28:09 2005 +1000
gfs2tex test() method uses gfsview-batch instead of gfsview (tests are non-interactive)
darcs-hash:20050706212809-fbd8f-edd61541ed6ed1d14ecee5ea45a0fbc42d8e028e.gz
diff --git a/doc/examples/gfs2tex.py b/doc/examples/gfs2tex.py
index c1734cc..51460c2 100644
--- a/doc/examples/gfs2tex.py
+++ b/doc/examples/gfs2tex.py
@@ -209,6 +209,9 @@ class Example:
files = path + self.name + ".gfs"
for f in self.required:
files += " " + path + f
+ command = self.command
+ for v in ["2D","2D3","3D"]:
+ command = command.replace("gfsview" + v, "gfsview-batch" + v)
out = os.popen("cd " + wdname + " && " +\
"mkdir test && cd test && " +\
"cp -f " + files + " . && " +\
@@ -217,7 +220,7 @@ class Example:
"else print $0;"
"}' < " + self.name + ".gfs > " + self.name + ".tmp && " +\
"mv -f " + self.name + ".tmp " + self.name + ".gfs && ( " +\
- self.command + " ) 2>&1")
+ command + " ) 2>&1")
lines = out.readlines()
status = out.close()
os.system("rm -r -f " + wdname)
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list