tgenerate_pbs_scripts_ridging-seed1.sh - seaice-experiments - sea ice experiments using Granular.jl
HTML git clone git://src.adamsgaard.dk/seaice-experiments
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tgenerate_pbs_scripts_ridging-seed1.sh (1333B)
---
1 #!/bin/bash
2 compressive_velocity=(0.1 0.05 0.2)
3 ny_fixed=10
4 ny_variable=(3 5 7 9 11 13 15 17 19 21)
5 prefix=ridging
6 scriptname=ridging_simulation.jl
7
8 function pbs_script() {
9 compressive_velocity_=$1
10 ny1=$2
11 ny2=$3
12 script="#!/bin/csh -fv
13 #PBS -N ${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}
14 #PBS -l nodes=1:ppn=1
15 #PBS -l walltime=96:00:00
16 #PBS -o /home/Anders.Damsgaard/log/ridging/
17 #PBS -j oe
18 #PBS -r n
19 #PBS -m e
20 #PBS -d /home/Anders.Damsgaard/
21 #PBS -S /bin/csh
22 #PBS -q batch
23
24 setenv JULIA_PKGDIR /work/and/.julia
25 setenv LD_LIBRARY_PATH /work/and/anaconda3/lib:\$LD_LIBRARY_PATH
26
27 cd /work/and/SeaIce-experiments/ridging/
28 /home/Anders.Damsgaard/local/julia-903644385b/bin/julia \\
29 --procs 1 --optimize=3 --math-mode=fast --color=yes ${scriptname} \\
30 --compressive_velocity=$compressive_velocity_ \\
31 --ny1=$ny1 \\
32 --ny2=$ny2 \\
33 \"${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}\"
34 "
35 echo "$script" > \
36 "${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}.csh"
37 }
38
39
40 for compressive_velocity_ in ${compressive_velocity[@]}; do
41
42 for ny2 in ${ny_variable[@]}; do
43 pbs_script $compressive_velocity_ $ny_fixed $ny2
44 done
45
46 for ny1 in ${ny_variable[@]}; do
47 pbs_script $compressive_velocity_ $ny1 $ny_fixed
48 done
49 done