forked from arianguyen/feature-mediated-dependency-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPBS_simulations.pbs
More file actions
31 lines (27 loc) · 756 Bytes
/
PBS_simulations.pbs
File metadata and controls
31 lines (27 loc) · 756 Bytes
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
#!/bin/bash
#PBS -l select=1:ncpus=2:mem=90GB
#PBS -l walltime=23:59:59
#PBS -J 1-6
#PBS -j oe
#PBS -M mngu3236@uni.sydney.edu.au
#PBS -m ae
cd $PBS_O_WORKDIR
echo $PBS_O_WORKDIR
echo $PBS_ARRAY_INDEX
ts_lengths=(50 100 500 1000 5000 10000)
source_type="random"
driving_feature_timescale=10
counter=0
for ts_length in "${ts_lengths[@]}"; do
counter=$((counter+1))
if [ "$counter" == "$PBS_ARRAY_INDEX" ]; then
echo $ts_length
out=124
while [ $out -eq 124 ]
do
bash -c "Rscript main.R --ts_length=$ts_length --source_type=$source_type --driving_feature_timescale=$driving_feature_timescale" 2>&1 | tee "$HOME/jobs/${PBS_JOBID}.log"
out=$?
echo "Calculations exited with code ${out}" >> "$HOME/jobs/${PBS_JOBID}.log"
done
fi
done