Adrià Vilanova MartÃnez | c102e96 | 2022-06-04 23:53:44 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
2 | T="$1" | ||||
3 | L="$2" | ||||
4 | outFolder="dep_en_L/$L" | ||||
5 | outFilePrefix="${outFolder}/$T" | ||||
6 | |||||
7 | if [ -f "data_out/${outFilePrefix}.res" ]; then | ||||
8 | echo "Skipping computation for L=$L, T=$T (.res file already exists)" | ||||
9 | exit 0 | ||||
10 | fi | ||||
11 | |||||
12 | echo "Starting computation for L=$L, T=$T" | ||||
13 | |||||
14 | cat <<EOF | ./out/mc2 | ||||
15 | &DADES | ||||
16 | L=$L, | ||||
17 | NOM="$outFilePrefix", | ||||
18 | TEMP=$T, | ||||
19 | NSEED=150, | ||||
20 | SEED0=117654, | ||||
21 | MCTOT=40000, | ||||
22 | MCINI=2000, | ||||
23 | MCD=20 | ||||
24 | &END | ||||
25 | EOF |