seaice-experiments

sea ice experiments using Granular.jl
git clone git://src.adamsgaard.dk/seaice-experiments # fast
git clone https://src.adamsgaard.dk/seaice-experiments.git # slow
Log | Files | Refs | README | LICENSE Back to index

generate_pbs_scripts_elastoridge-seed1.sh (1373B)


      1 #!/bin/bash
      2 compressive_velocity=(0.1)
      3 ny_fixed=10
      4 ny_variable=(3 5 7 9 11)
      5 prefix=elastoridge
      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     --tensile_strength=1e24 \\
     34     --shear_strength=1e24 \\
     35     \"${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}\"
     36 "
     37     echo "$script" > \
     38         "${prefix}-seed1-ny1_${ny1}-ny2_${ny2}-cv_${compressive_velocity_}.csh"
     39 }
     40 
     41 
     42 for compressive_velocity_ in ${compressive_velocity[@]}; do
     43 
     44     for ny2 in ${ny_variable[@]}; do
     45         pbs_script $compressive_velocity_ $ny_fixed $ny2
     46     done
     47 
     48     for ny1 in ${ny_variable[@]}; do
     49         pbs_script $compressive_velocity_ $ny1 $ny_fixed
     50     done
     51 done