-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_cal.slurm
37 lines (27 loc) · 2.08 KB
/
run_cal.slurm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#SBATCH --partition=$PART
#SBATCH --job-name=FRcal$id
#SBATCH --ntasks=$NN
#SBATCH --tasks-per-node=24
#SBATCH --account=ICESHEET
#SBATCH [email protected]
#SBATCH --mail-type=FAIL
#SBATCH --output=$sloc/logs/pismlog_$id.%j
#SBATCH --time=00-12:00:00
umask 007
ulimit -s unlimited
ulimit -l unlimited
ulimit
# Generate a list of allocated nodes; will serve as a machinefile for mpirun
srun -l /bin/hostname | sort -n | awk '{print $2}' > ./nodes.$SLURM_JOB_ID
# Launch the MPI application
mpiexec -n $NN -machinefile ./nodes.$SLURM_JOB_ID pismr -i $inspin -surface given -surface_given_file $surffile -ocean $otype -ocean_pico_file $ofile -bed_def none -hydrology null -topg_to_phi 1.0,45.0,$TGP2,$TGP3 -config_override maps/pism_config_override.nc -config maps/pism_config_default.nc -front_retreat_file $frontretreatfile -ye $yearend -skip -skip_max 100 -options_left -verbose 2 -o_format netcdf4_parallel -o_order yxz -allow_extrapolation -ssa_dirichlet_bc -stress_balance.sia.max_diffusivity 3000 -regional -regional.zero_gradient -ssa_rtol 1.0e-4 -ssa_maxi 300 -ssafd_nuH_iter_failure_underrelaxation 0.8 -ssa_eps 1.0e13 -sia_e $SIAe -ssa_e $SSAe -ssa_method fd -stress_balance ssa+sia -sia_flow_law gpbld -ssa_flow_law gpbld -pik -pseudo_plastic -pseudo_plastic_q $PPQ -pseudo_plastic_uthreshold 100.0 -till_effective_fraction_overburden $TEFO -subgl -ts_file $sloc/extra/timeseries_$id.nc -ts_times 0:yearly:2000 -o $sloc/output/result_medium_$id.nc -o_size medium
#-extra_file $sloc/extra/extra_$id.nc -extra_times -1:5:2000 -extra_vars velbar_mag,mask,dbdt,topg,thk,usurf,ice_surface_temp,climatic_mass_balance,bmelt,tillwat,velsurf_mag,diffusivity
#ncks -A -v x,y,lat,lon,velsurf_mag,thk $sloc/output/result_medium_$id.nc $sloc/output/result_thin_$id.nc
#THIS IS THE PROPER FILE
ncks -A -v x,y,lat,lon,velsurf_mag,thk $sloc/output/result_medium_$id.nc $sloc/output/result_thin_$id.nc
ncks -4 -L 2 $sloc/output/result_thin_$id.nc $sloc/output/result_$id.nc
rm $sloc/output/result_medium_$id.nc
rm $sloc/output/result_thin_$id.nc
# Clean up the machinefile
rm ./nodes.$SLURM_JOB_ID