This repository has been archived by the owner on Jan 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makeJobs.py
executable file
·70 lines (56 loc) · 2.43 KB
/
makeJobs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
##
## o--------------------------o
## | makeJobs.py |
## | ~~~~~~~~~~~~~~~~~~~~~~~~ |
## | Part of libTardis |
## o--------------------------o
##
from incFunctions import *
fDirX("jobQueue")
aShells = [6]
aParticles = [4]
aM = [0]
aMs = [0]
aOmega = [0.0]
aLambda = [6.0]
aEnergyCut = [False]
aEffective = [False]
aMethod = [0]
bCalcCoeff = False
sCoeffPath = "/scratch/Temp/Coeff/"
for bEffective in aEffective:
for bEnergyCut in aEnergyCut:
for dLambda in aLambda:
for dOmega in aOmega:
for iMs in aMs:
for iM in aM:
for iParticles in aParticles:
for iShells in aShells:
for iMethod in aMethod:
sFile = str(iParticles).zfill(2)+"P"
sFile += "_"+str(iShells).zfill(2)+"Sh"
if dLambda > 0:
sFile += "_"+str(dLambda).zfill(4)+"L"
if dOmega > 0:
sFile += "_"+str(dOmega).zfill(4)+"O"
sFile += "_"+str(iM).zfill(2)+"M"
sFile += "_"+str(iMs).zfill(2)+"Ms"
if bEnergyCut:
sFile += "_ECut"
else:
sFile += "_NoECut"
if bEffective:
sFile += "_Veff"
else:
sFile += "_Vstd"
if iMethod == 0:
sFile += "_Lz"
else:
sFile += "_Di"
sCoeffFile = sCoeffPath+"Coeffs-"+sFile+".out"
sFile += ".cpp"
print "Making file: jobQueue/"+sFile
oFile = open("jobQueue/"+sFile, 'w')
oFile.write(fJobFile(iShells, iParticles, iM, iMs, dOmega, dLambda, bEnergyCut, bEffective, iMethod, bCalcCoeff, sCoeffFile))
oFile.close()