-
Notifications
You must be signed in to change notification settings - Fork 7
/
create-4layers.sh
114 lines (114 loc) · 3.37 KB
/
create-4layers.sh
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
#!/bin/sh
i=0
submitted=0
for M1 in Mo W
do
for X1 in S Se Te
do
for M2 in Mo W
do
for X2 in S Se Te
do
for M3 in Mo W
do
for X3 in S Se Te
do
for M4 in Mo W
do
for X4 in S Se Te
do
symm_index=0
fourth=${M4}${X4}
third=${M3}${X3}
second=${M2}${X2}
first=${M1}${X1}
if [[ $first == MoS ]]
then
symm_index=$((symm_index+0))
elif [[ $first == MoSe ]]
then
symm_index=$((symm_index+1))
elif [[ $first == MoTe ]]
then
symm_index=$((symm_index+2))
elif [[ $first == WS ]]
then
symm_index=$((symm_index+3))
elif [[ $first == WSe ]]
then
symm_index=$((symm_index+4))
else
symm_index=$((symm_index+5))
fi
if [[ $second == MoS ]]
then
symm_index=$((symm_index+0))
elif [[ $second == MoSe ]]
then
symm_index=$((symm_index+6))
elif [[ $second == MoTe ]]
then
symm_index=$((symm_index+12))
elif [[ $second == WS ]]
then
symm_index=$((symm_index+18))
elif [[ $second == WSe ]]
then
symm_index=$((symm_index+24))
else
symm_index=$((symm_index+30))
fi
if [[ $third == MoS ]]
then
symm_index=$((symm_index+0))
elif [[ $third == MoSe ]]
then
symm_index=$((symm_index+36))
elif [[ $third == MoTe ]]
then
symm_index=$((symm_index+72))
elif [[ $third == WS ]]
then
symm_index=$((symm_index+108))
elif [[ $third == WSe ]]
then
symm_index=$((symm_index+144))
else
symm_index=$((symm_index+180))
fi
if [[ $fourth == MoS ]]
then
symm_index=$((symm_index+0))
elif [[ $fourth == MoSe ]]
then
symm_index=$((symm_index+216))
elif [[ $fourth == MoTe ]]
then
symm_index=$((symm_index+432))
elif [[ $fourth == WS ]]
then
symm_index=$((symm_index+648))
elif [[ $fourth == WSe ]]
then
symm_index=$((symm_index+864))
else
symm_index=$((symm_index+1080))
fi
if (( $i > $symm_index ))
then
echo "already submitted "$M1${X1}2-$M2${X2}2-$M3${X3}2-$M4${X4}2
else
echo "submitting "$M1${X1}2-$M2${X2}2-$M3${X3}2-$M4${X4}2
submitted=$((submitted+1))
#python snl_prep.py -s $M1${X1}2-$M2${X2}2-$M3${X3}2-$M4${X4}2 -d .
fi
i=$((i+1))
done
done
done
done
done
done
done
done
echo $submitted