#PBS -N hwrf%STORMNUM%_ensda_output_%CYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l walltime=00:10:00
#PBS -l place=vscatter,select=1:ncpus=1:mpiprocs=1:mem=1G
#PBS -l debug=true

export NODES=1
export TOTAL_TASKS=1

model=hwrf
export cyc="%CYC%"
%include <head.h>
%include <envir-p1.h>

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

# versions file for hwrf sets $model_ver and $code_ver

module use ${HOMEhwrf}/modulefiles/
module load HWRF/runensda
module list

${HOMEhwrf}/jobs/JHWRF_ENSDA_OUTPUT

%include <tail.h>

%manual

TASK ensda_output

PURPOSE: Delivers the wrfdiag files to COM, plus a number of other
files required either by the next HWRF cycle, or by HWRF developers
for diagnosing problems.  The only files with downstream usage are the
three wrfdiag files.  However, the various other files must be
delivered before the hwrf[1-7]/init families start.

Events

  wrfdiag - set after the wrfdiag files are delivered to COM.  These
    are the files required by the NCEP Hurricane Wave model, along
    with the track which has already been delivered by this point.

%end