...
In the global_hg_llc90/run
, pfos/run
, and pcb/run
directory, you will find everal several sample scripts that you can use to run MITgcm jobs.
...
The run.mitgcm scripts
The run.mitgcm* scripts are used to start a MITgcm simulation with 13 CPUs (for debugging) or 96 CPUs. The run.mitgcm.*.debug
scripts look like this:
Code Block |
---|
#!/bin/bash
#SBATCH -n 13
#SBATCH -N 1
#SBATCH -t 60
#SBATCH -p general
#SBATCH --mem-per-cpu=3750
#SBATCH --mail-type=ALL
#EOC
#------------------------------------------------------------------------------
# Harvard Biogeochemistry of Global Pollutants Group !
#------------------------------------------------------------------------------
#BOP
#
# !IROUTINE: run.mitgcm.13np.debug
#
# !DESCRIPTION: Script to run a debug MITgcm simulation with 13 CPUs.
#\\
#\\
# !CALLING SEQUENCE:
# sbatch run.mitgcm.13np.debug # To submit a batch job
# ./run.mitgcm.hg.13np.debug # To run in an interactive session
#
# !REMARKS:
# Consider requesting an entire node (-N 64 -n 1), which will prevent
# outside jobs from slowing down your simulation.
#
# Also note: Make your timestep edits in "data.debug_run", which will
# automatically be copied to "data" by this script.
#
# !REVISION HISTORY:
# 17 Feb 2015 - R. Yantosca - Initial version
#EOP
#------------------------------------------------------------------------------
#BOC
# Make sure we apply the .bashrc_mitgcm settings
source ~/.bashrc_mitgcm
# Copy run-time parameter input files for the 13 CPU run
cp -f data.debug_run data
cp -f data.exch2.13np data.exch2
# Remove old output files
rm -f STDOUT.*
rm -f STDERR.*
rm -f PTRACER*
# Run MITgcm with 13 CPUs
time -p ( mpirun -np 13 ./mitgcmuv )
exit 0
#EOC |
Each run script also copies the following files before starting the run
...