-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob.batch.bash
157 lines (149 loc) · 4.24 KB
/
job.batch.bash
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#!/bin/bash
job_id=1
U=0.2
Ed_up=-0.186
Ed_down=-0.186
Lambda=10
alpha=0.69
num_kept=512
smear=1
unsmear=1
dim_imp=4
dim_dot=4
Beta_bar=0.6
Q=0
Q_Sz=0
N_up_N_down=1
occupation=1
N_max=0
Gamma0=0.4
Nz=4
dir=`pwd`
if [ -e batch/Vg ]
then
for file in batch/Vg*_h*_T*
do
Vg=`echo $file |cut -d '/' -f 2|cut -d "_" -f 1 |cut -d g -f 2`
h=`echo $file | cut -d '/' -f 2|cut -d "_" -f 2 |cut -d h -f 2`
temperature=`echo $file |cut -d "_" -f 3 |cut -d T -f 2`
mkdir Vg${Vg}_h$h
cd Vg${Vg}_h$h
dir1=`pwd`
for z in 0 0.25 0.5 0.75
do
#rm -fr $z
mkdir $z
cd $z
dir2=`pwd`
omega0=$temperature
# rm -fr $temperature
mkdir $temperature
cd $temperature
cp /home/ligy/NRG/fdmnrg.x .
echo $job_id > job_id
echo $U >> input_total
echo $Ed_up >> input_total
echo $Ed_down >> input_total
echo $temperature >> input_total
echo $Lambda >> input_total
echo $alpha >> input_total
echo $num_kept >> input_total
echo $smear >> input_total
echo $unsmear >> input_total
echo $omega0 >> input_total
echo $dim_imp >> input_total
echo $dim_dot >> input_total
echo $Beta_bar >> input_total
echo $Q >> input_total
echo $Q_Sz >> input_total
echo $N_up_N_down >> input_total
echo $occupation >> input_total
echo $N_max >> input_total
echo $temperature >> input_band
echo $Lambda >> input_band
echo $num_kept >> input_band
echo $dim_imp >> input_band
echo $dim_dot >> input_band
echo $Beta_bar >> input_band
echo $Q >> input_band
echo $Q_Sz >> input_band
echo $N_up_N_down >> input_band
echo $N_max >> input_band
cp /home/ligy/NRG/makefreq.cpp .
cp /home/ligy/NRG/test.submit .
icpc makefreq.cpp -o makefreq.x
./makefreq.x
cp ~/data_chain_fitting/chain_Lambda${Lambda}_r1_k${Gamma0}_Vg${Vg}_h${h}_z${z}.dat chain_band.dat
cp ~/data_chain_fitting/chain_Lambda${Lambda}_r1_k${Gamma0}_Vg${Vg}_h${h}_z${z}.dat chain_total.dat
job_name=$Vg-$h
qsub -N ${job_name} test.submit
cd $dir1
done
cd $dir
mv $file done/
done
fi
if [ -e batch/h ]
then
for file in batch/h*_Vg*_T*
do
h=`echo $file | cut -d '/' -f 2|cut -d "_" -f 1 |cut -d h -f 2`
Vg=`echo $file | cut -d '/' -f 2|cut -d "_" -f 2 |cut -d g -f 2`
temperature=`echo $file |cut -d "_" -f 3 |cut -d T -f 2`
echo $h $Vg $temperature
mkdir h${h}_Vg$Vg
cd h${h}_Vg$Vg
dir1=`pwd`
for z in 0 0.25 0.5 0.75
do
#rm -fr $z
mkdir $z
cd $z
dir2=`pwd`
omega0=$temperature
mkdir $temperature
cd $temperature
cp /home/ligy/NRG/fdmnrg.x .
echo $job_id > job_id
echo $U >> input_total
echo $Ed_up >> input_total
echo $Ed_down >> input_total
echo $temperature >> input_total
echo $Lambda >> input_total
echo $alpha >> input_total
echo $num_kept >> input_total
echo $smear >> input_total
echo $unsmear >> input_total
echo $omega0 >> input_total
echo $dim_imp >> input_total
echo $dim_dot >> input_total
echo $Beta_bar >> input_total
echo $Q >> input_total
echo $Q_Sz >> input_total
echo $N_up_N_down >> input_total
echo $occupation >> input_total
echo $N_max >> input_total
echo $temperature >> input_band
echo $Lambda >> input_band
echo $num_kept >> input_band
echo $dim_imp >> input_band
echo $dim_dot >> input_band
echo $Beta_bar >> input_band
echo $Q >> input_band
echo $Q_Sz >> input_band
echo $N_up_N_down >> input_band
echo $N_max >> input_band
cp /home/ligy/NRG/makefreq.cpp .
cp /home/ligy/NRG/test.submit .
icpc makefreq.cpp -o makefreq.x
./makefreq.x
cp ~/data_chain_fitting/chain_Lambda${Lambda}_r1_k${Gamma0}_Vg${Vg}_h${h}_z${z}.dat chain_band.dat
cp ~/data_chain_fitting/chain_Lambda${Lambda}_r1_k${Gamma0}_Vg${Vg}_h${h}_z${z}.dat chain_total.dat
job_name=$Vg-$h
qsub -N ${job_name} test.submit
cd $dir1
done
cd $dir
done
mv $file done
fi