Python wrapper for running instances of trisurf-ng
Samo Penic
2017-01-05 8ab9858b258d79da0c56a6cd6394a6d2a2013e5c
commit | author | age
8ab985 1 #!/usr/bin/python3
SP 2 from trisurf import trisurf
3 from trisurf import tsmgr
4
5
6
7
8 #Ok... Configure your keys:
9 #ssh-keygen
10 #and copy them to all the remote hosts
11 #ssh-copy-id -i ./ssh/id_rsa.pub username@remotehost
12
13 run2=trisurf.Runner(tape='tape')
14 run2.setMaindir(("N","k","V","Np","Nm"),("nshell","xk0","constvolswitch","npoly","nmono"))
15 run2.setSubdir("run1")
16
17 run3=trisurf.Runner(tape='tape')
18 run3.setMaindir(("N","k","V","Np","Nm"),("nshell","xk0","constvolswitch","npoly","nmono"))
19 run3.setSubdir("run2")
20
21
22
23 Runs=[run2, run3]
24
25 hosts=({'name':'Hestia','address':'kabinet.penic.eu', 'runs':Runs, 'username':'samo'},
26     {'name':'altea','address':'127.0.0.1', 'runs':Runs, 'username':'samo'})
27
28 tsmgr.start(hosts)