tgenerate_pbs_scripts_elastobuckle-seed1.sh - seaice-experiments - sea ice experiments using Granular.jl
 (HTM) git clone git://src.adamsgaard.dk/seaice-experiments
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tgenerate_pbs_scripts_elastobuckle-seed1.sh (1231B)
       ---
            1 #!/bin/bash
            2 compressive_velocity=(0.1)
            3 ny_variable=(3 5 7 9 11)
            4 prefix=elastobuckle
            5 scriptname=ridging_simulation.jl
            6 
            7 function pbs_script() {
            8     compressive_velocity_=$1
            9     ny1=$2
           10     script="#!/bin/csh -fv
           11 #PBS -N ${prefix}-seed1-ny1_${ny1}-cv_${compressive_velocity_}
           12 #PBS -l nodes=1:ppn=1
           13 #PBS -l walltime=96:00:00
           14 #PBS -o /home/Anders.Damsgaard/log/ridging/
           15 #PBS -j oe
           16 #PBS -r n
           17 #PBS -m e
           18 #PBS -d /home/Anders.Damsgaard/
           19 #PBS -S /bin/csh
           20 #PBS -q batch
           21 
           22 setenv JULIA_PKGDIR /work/and/.julia
           23 setenv LD_LIBRARY_PATH /work/and/anaconda3/lib:\$LD_LIBRARY_PATH
           24 
           25 cd /work/and/SeaIce-experiments/ridging/
           26 /home/Anders.Damsgaard/local/julia-903644385b/bin/julia \\
           27     --procs 1 --optimize=3 --math-mode=fast --color=yes ${scriptname} \\
           28     --compressive_velocity=$compressive_velocity_ \\
           29     --ny1=$ny1 \\
           30     --tensile_strength=1e24 \\
           31     --shear_strength=1e24 \\
           32     --one_floe=true \\
           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 ny1 in ${ny_variable[@]}; do
           43         pbs_script $compressive_velocity_ $ny1
           44     done
           45 done