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