1 |
guez |
3 |
# This is a script in Bash. |
2 |
|
|
|
3 |
|
|
# This script produces vertical distributions for all sampling |
4 |
guez |
15 |
# methods, for a given value of "llm". Run this script from the |
5 |
guez |
17 |
# directory containing "test_disvert". The Fortran program needs to be |
6 |
|
|
# recompiled when "llm" changes. |
7 |
guez |
3 |
|
8 |
|
|
trap 'echo -e \\a; exit 1' ERR |
9 |
|
|
|
10 |
|
|
read -p "llm = ? " llm |
11 |
|
|
# (only used to name the output files in this script, not used by the |
12 |
|
|
# Fortran program) |
13 |
|
|
|
14 |
|
|
set -x |
15 |
|
|
|
16 |
guez |
15 |
for s_sampling in param LMD5 strato1 strato2 |
17 |
guez |
3 |
do |
18 |
guez |
15 |
test_disvert <<EOF |
19 |
|
|
&disvert_nml S_SAMPLING="$s_sampling" / |
20 |
guez |
3 |
EOF |
21 |
guez |
15 |
mv test_disvert.csv test_disvert_${llm}_$s_sampling.csv |
22 |
|
|
ln -sf test_disvert_${llm}_$s_sampling.csv \ |
23 |
|
|
test_disvert_$s_sampling.csv |
24 |
guez |
3 |
done |