-
Notifications
You must be signed in to change notification settings - Fork 21
/
launch_all_les_blocksizes.sh
executable file
·90 lines (68 loc) · 2.51 KB
/
launch_all_les_blocksizes.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
export SKIPMAKE=true
# how many cases to consider
for nblocks in 2 4 8; do
#for nblocks in 4; do
if [ ${nblocks} == 8 ] ; then
blocksize=4
elif [ ${nblocks} == 4 ] ; then
blocksize=8
elif [ ${nblocks} == 2 ] ; then
blocksize=16
else
echo "ERROR"
exit 1
fi
make -C ~/CubismUP_3D/makefiles/ clean
make -C ~/CubismUP_3D/makefiles/ hdf=false bs=${blocksize} accfft=false -j rlHIT
#make -C ~/CubismUP_3D/makefiles/ bs=${blocksize} -j rlHIT
for run in 02 03; do
export LES_RL_NBLOCK=$nblocks
export LES_RL_N_TSIM=20
POSTNAME=sim${LES_RL_N_TSIM}_RUN${run}
SPEC=NEW
# several options for actuation freq (relative to kolmogorov time)
# bcz it affects run time we allocate different number of resources:
################################################################################
export LES_RL_GRIDACT=0
export LES_RL_NETTYPE=GRU
BASENAME=BlockAgents_${SPEC}_${LES_RL_NETTYPE}_${nblocks}blocks
echo $BASENAME
################################################################################
export LES_RL_FREQ_A=1
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
#smarties.py MARL_LES -n 16 -r ${RUNDIR}
export LES_RL_FREQ_A=2
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
#smarties.py MARL_LES -n 11 -r ${RUNDIR}
export LES_RL_FREQ_A=4
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
#smarties.py MARL_LES -n 6 -r ${RUNDIR}
export LES_RL_FREQ_A=8
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
#smarties.py MARL_LES -n 4 -r ${RUNDIR}
export LES_RL_FREQ_A=16
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
#smarties.py MARL_LES -n 4 -r ${RUNDIR}
################################################################################
export LES_RL_GRIDACT=0
export LES_RL_NETTYPE=FFNN
BASENAME=BlockAgents_${SPEC}_${LES_RL_NETTYPE}_${nblocks}blocks
echo $BASENAME
################################################################################
export LES_RL_FREQ_A=1
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
#smarties.py MARL_LES -n 25 -r ${RUNDIR}
export LES_RL_FREQ_A=2
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
smarties.py MARL_LES -n 12 -r ${RUNDIR}
export LES_RL_FREQ_A=4
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
smarties.py MARL_LES -n 7 -r ${RUNDIR}
export LES_RL_FREQ_A=8
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
smarties.py MARL_LES -n 4 -r ${RUNDIR}
export LES_RL_FREQ_A=16
RUNDIR=${BASENAME}_act`printf %02d $LES_RL_FREQ_A`_${POSTNAME}
#smarties.py MARL_LES -n 4 -r ${RUNDIR}
done
done