-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathYonggang.sh
executable file
·72 lines (50 loc) · 2.04 KB
/
Yonggang.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
#!/bin/bash
#TC2 SCVT experiments
# Script for Yonggang Yu to reproce results for SW TC2 experiments
#!/bin/bash
source inc_vars.sh
# Script for convergence analysis on HR95 grids
#------------------------------------------
#Setup enviroment
make
#Adjust threading
export OMP_NUM_THREADS=4
#Download grids
./sh/getgridsfromserver.sh
echo " Basic Parameters "
echo "---------------------------------"
echo " "
cp par/mesh_Yonggang.par par/mesh.par
cat par/mesh.par
awk '{ if ( NR == 5 ) { print "read";} else {print $0;} }' par/mesh.par > par/mesh2.par
awk '{ if ( NR == 9 ) { print "nopt";} else {print $0;} }' par/mesh2.par > par/mesh.par
#cp par/mesh2.par par/mesh.par
cp par/swm_Yonggang.par par/swm.par
cat par/swm.par
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_1.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_2.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_3.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_4.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_5.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_6.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_7.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_8.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel
awk '{ if ( NR == 17 ) { print "icos_pol_scvt_h1_9.xyz";} else {print $0;} }' par/mesh.par > par/mesh2.par
cp par/mesh2.par par/mesh.par
./imodel