From bd826de2f539f2e48c8c01d2d7f9f34c7e97104a Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Fri, 13 May 2016 07:43:27 +0000
Subject: [PATCH] Fix in trisurf output, inhibiting print of successful reconstruction. Multiple fixes and improvements in python module. Added symlinking of tapes into the running directories and dumping tapes from snapshots into tape files.

---
 python/tsmgr |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/python/tsmgr b/python/tsmgr
index 4b2b13f..775d667 100755
--- a/python/tsmgr
+++ b/python/tsmgr
@@ -9,7 +9,7 @@
 run1.setMaindir(("N","k","V","Np","Nm"),("nshell","xk0","constvolswitch","npoly","nmono"))
 run1.setSubdir("run0")
 
-run2=trisurf.Runner(snapshot='snapshot.vtu')
+run2=trisurf.Runner(tape='tape', runArgs=['--force-from-tape'])
 run2.setMaindir(("N","k","V","Np","Nm"),("nshell","xk0","constvolswitch","npoly","nmono"))
 run2.setSubdir("run1")
 
@@ -25,13 +25,13 @@
 argv=sys.argv[1:]
 processno=0
 try:
-	opts, args = getopt.getopt(argv,"n:hrsc:")
+	opts, args = getopt.getopt(argv,"a:n:hrsc:")
 except getopt.GetoptError:
-	print('tsmgr [-n process number] [-h] [-r] [-s] [-c comment text]')
+	print('tsmgr [-n process number] [-h] [-r] [-s] [-c comment text] [-a comment text]')
 	sys.exit(2)
 for opt, arg in opts:
 	if opt == '-h':
-		print ('tsmgr [-n process number] [-h] [-r] [-s] [-c comment text]')
+		print ('tsmgr [-n process number] [-h] [-r] [-s] [-c comment text] [-a comment text]')
 		sys.exit()
 	elif opt == '-r':
 		if processno:
@@ -63,10 +63,14 @@
 		comment = arg
 		if processno:
 			Runs[processno-1].writeComment(arg)
+	elif opt == '-a':
+		comment = arg
+		if processno:
+			Runs[processno-1].writeComment("\n"+arg, 'a')
 
 		
 	else:
-		print('tsmgr [-n process number] [-h] [-r] [-s] [-c comment text]')
+		print('tsmgr [-n process number] [-h] [-r] [-s] [-c comment text] [-a comment text]')
 		sys.exit(2)
 
 

--
Gitblit v1.9.3