trun.sh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
 (HTM) git clone git://src.adamsgaard.dk/pism
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       trun.sh (713B)
       ---
            1 #!/bin/bash
            2 
            3 set -x
            4 set -e
            5 
            6 # preprocess stage 1: create config file
            7 cat <<EOF | ncgen -o conf.nc 
            8 netcdf conf {
            9 variables:
           10 byte pism_overrides;
           11 pism_overrides:hydrology_tillwat_max = 1000.0;
           12 }
           13 EOF
           14 
           15 # preprocess stage 2: create bootstrap file
           16 ./generate_inputs.py
           17 
           18 # run stage
           19 pismexec="pismr"
           20 ts=0
           21 te=300000
           22 oname=out_box.nc
           23 grid="-Mx 3 -My 3 -Mz 100 -Lz 1000 -Mbz 1 -Lbz 0 -z_spacing equal -max_dt 10"
           24 physics="-config_override conf.nc -no_mass"
           25 surface="-surface given,delta_T -surface_delta_T_file box_dT.nc"
           26 extra="-extra_file ex_box.nc -extra_times $ts:1000:$te -extra_vars bmelt,tillwat,temppabase,tempbase,tempsurf"
           27 
           28 $pismexec -bootstrap -i box.nc $grid $physics $surface $extra -ys $ts -ye $te -o $oname