generate_pbs_scripts_medridge-seed1.sh (1674B)
1 #!/bin/bash 2 compressive_velocity=(0.1) 3 nx=500 4 ny_fixed=10 5 ny_variable=(11 21) 6 tensile_strength_std_dev=(0.0 40000.0 100000.0) 7 prefix=medridge 8 scriptname=ridging_simulation.jl 9 10 function pbs_script() { 11 compressive_velocity_=$1 12 ny1=$2 13 ny2=$3 14 nx1=$4 15 nx2=$5 16 tensile_strength_std_dev_=$6 17 script="#!/bin/csh -fv 18 #PBS -N ${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}_ts_stddev_${tensile_strength_std_dev_} 19 #PBS -l nodes=1:ppn=1 20 #PBS -l walltime=14:00:00:00 21 #PBS -o /home/Anders.Damsgaard/log/ridging/ 22 #PBS -j oe 23 #PBS -r n 24 #PBS -m e 25 #PBS -d /home/Anders.Damsgaard/ 26 #PBS -S /bin/csh 27 #PBS -q batch 28 29 setenv JULIA_PKGDIR /work/and/.julia 30 setenv LD_LIBRARY_PATH /work/and/anaconda3/lib:\$LD_LIBRARY_PATH 31 32 cd /work/and/SeaIce-experiments/ridging/ 33 /home/Anders.Damsgaard/local/julia-903644385b/bin/julia \\ 34 --procs 1 --optimize=3 --math-mode=fast --color=yes ${scriptname} \\ 35 --compressive_velocity=$compressive_velocity_ \\ 36 --ny1=$ny1 \\ 37 --ny2=$ny2 \\ 38 --nx1=$nx1 \\ 39 --nx2=$nx2 \\ 40 --tensile_strength_std_dev=$tensile_strength_std_dev_ \\ 41 \"${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}-ts_stddev_${tensile_strength_std_dev_}\" 42 " 43 echo "$script" > \ 44 "${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}-ts_stddev_${tensile_strength_std_dev_}.csh" 45 } 46 47 48 for compressive_velocity_ in ${compressive_velocity[@]}; do 49 50 for ny2 in ${ny_variable[@]}; do 51 for tensile_strength_std_dev_ in ${tensile_strength_std_dev[@]}; do 52 pbs_script $compressive_velocity_ $ny_fixed $ny2 $nx $nx \ 53 $tensile_strength_std_dev_ 54 done 55 done 56 done