#PBS -N hwrf%STORMNUM%_cleanup_%CYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l walltime=00:05:00
#PBS -l select=1:ncpus=1:mpiprocs=1

%include <head.h>
%include <envir-xc40.h>

export cyc="%CYC%"
export storm_num="%STORMNUM%"

# versions file for hwrf sets $model_ver and $code_ver
model=hwrf
%include <model_ver.h>


${HOMEhwrf}/jobs/JHWRF_CLEANUP

%include <tail.h>

%manual

TASK cleanup

PURPOSE: Deletes the HWRF working directory left behind by the same
cycle yesterday.  This job saves a minute or so of runtime that used
to take up the beginning of the launch job.

TROBLESHOOTING:

PROBLEM: Job has hung?

This job should not take longer than 5 minutes; all it does is an "rm
-rf".  If the job takes more than 5 minutes, then it is likely that
there is a filesystem problem.

%end