Revision 38e3e36f2162e2840d25d86d66b2685fcbffb936 authored by Benjamin R. Hillman on 13 January 2022, 19:12:45 UTC, committed by Benjamin R. Hillman on 13 January 2022, 19:12:45 UTC
1 parent 71c1ae5
template.case.run.sh
#!/bin/bash -e
# Batch system directives
{{ batchdirectives }}
# template to create a case run shell script. This should only ever be called
# by case.submit when on batch. Use case.submit from the command line to run your case.
# cd to case
cd {{ caseroot }}
# Set PYTHONPATH so we can make cime calls if needed
LIBDIR={{ cimeroot }}/scripts/lib
export PYTHONPATH=$LIBDIR:$PYTHONPATH
# setup environment
source .env_mach_specific.sh
# get new lid
lid=$(python -c 'import CIME.utils; print CIME.utils.new_lid()')
export LID=$lid
# Clean/make timing dirs
RUNDIR=$(./xmlquery RUNDIR --value)
if [ -e $RUNDIR/timing ]; then
/bin/rm -rf $RUNDIR/timing
fi
mkdir -p $RUNDIR/timing/checkpoints
# minimum namelist action
./preview_namelists --component cpl
#./preview_namelists # uncomment for full namelist generation
# uncomment for lockfile checking
# ./check_lockedfiles
# setup OMP_NUM_THREADS
export OMP_NUM_THREADS=$(./xmlquery THREAD_COUNT --value)
# save prerun provenance?
# MPIRUN!
cd $(./xmlquery RUNDIR --value)
{{ mpirun }}
# save logs?
# save postrun provenance?
# resubmit ?
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...