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

export NODES=1
export TOTAL_TASKS=128

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/rungsi
module list

export ENSDA_MEMB="01"
${HOMEhwrf}/jobs/JHWRF_ENSDA

%include <tail.h>

%manual

TASK ensmem01

PURPOSE: Estimates forecast error covariances for the next cycle
gsi_d02 and gsi_d03 jobs.

This is member 01 of the HWRF forty-member data assimilation
ensemble, known as ENSDA.  This ensemble is only run when the next
cycle of the same storm will have a NOAA Hurricane Hunter aircraft
flight through it.  In those rare circumstances, the ENSDA will be
used by the gsi_d02 and gsi_d03 jobs in the next cycle to judge the
forecast error covariances.

TRIGGER NOTES: These jobs are grouped into four groups of ten.  The
triggers are set up so one group will run at a time, but this is not
necessary.  You can submit as many as all forty jobs in parallel.
There is no actual dependency between them.

%end