#!/bin/bash ############################################################################### ## ## ## Campus Cluster ## ## Sample SERIAL Job Batch Script ## ## ## ## SLURM Options (To view, run the following command below) ## ## ## ## man sbatch ## ## ## ############################################################################### # #SBATCH --nodes=1 # Number of nodes #SBATCH --ntasks-per-node=16 # Number of task (cores/ppn) per node #SBATCH --time=00:10:00 # Time limit hrs:min:sec #SBATCH --job-name=dryrun_20180104 # Name of batch job #SBATCH --partition=secondary # Partition (queue) #SBATCH --output=dryrun_201801_201804.o%j # Name of batch job output file #SBATCH --error=dryrun_201801_201804.e%j # Name of batch job error file #SBATCH --mail-user=hmhorow@illinois.edu # Send email notifications #SBATCH --mail-type=BEGIN,END # Type of email notifications to send # ############################################################################### # Change to the directory from which the batch job was submitted # Note: SLURM defaults to running jobs in the directory where # they are submitted, no need for cd'ing to $SLURM_SUBMIT_DIR # not sure if we need this export OMP_NUM_THREADS=16 #cd ${SLURM_SUBMIT_DIR} # run a geos chem dry run source ~/.bashrc_geoschem ./gcclassic --dryrun > log.dryrun.201801_201804