Skip to content

Commit

Permalink
Updates needed for ecflow workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin blake committed Oct 30, 2024
1 parent 8a73f0b commit 095f594
Show file tree
Hide file tree
Showing 18 changed files with 77 additions and 12 deletions.
5 changes: 5 additions & 0 deletions jobs/JRRFS_ANALYSIS_GSI
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

export CYCLE_TYPE=${CYCLE_TYPE:-prod}
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_ANALYSIS_NONVARCLD
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

export DATA=${DATAROOT}/${jobid}
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_BLEND_ICS
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ export RUN=${RUN:-rrfs}
export outid=${outid:-"LL$job"}
export jobid=${jobid:-taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")
export umbrella_data="${DATAROOT}/${RUN}_${PDY}${cyc}/${WGF}/${mem_num}/ics"

Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_BUFRSND
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export jobid=${taskid}
export fhr=01
export tmmark=tm00

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

CYCLE_TYPE=${CYCLE_TYPE:-prod}
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

export CYCLE_TYPE=${CYCLE_TYPE:-prod}
Expand Down
7 changes: 6 additions & 1 deletion jobs/JRRFS_MAKE_ICS
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ for the RRFS (in NetCDF format).
# Set the parameters for the external model files.
#-----------------------------------------------------------------------

extrn_mdl_name="${EXTRN_MDL_NAME}"
extrn_mdl_name="${EXTRN_MDL_NAME_ICS}"
sysbasedir="${EXTRN_MDL_SYSBASEDIR_ICS}"
gfs_file_fmt="${GFS_FILE_FMT_ICS}"
time_offset_hrs="${EXTRN_MDL_ICS_OFFSET_HRS}"
Expand Down Expand Up @@ -137,6 +137,11 @@ export RUN=${RUN:-rrfs}
export outid=${outid:-"LL$job"}
export jobid=${jobid:-taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")
if [ "${DO_ENSEMBLE}" = "TRUE" ]; then
export umbrella_data="${DATAROOT}/${RUN}_${PDY}${cyc}/${WGF}/${mem_num}/ics"
Expand Down
7 changes: 6 additions & 1 deletion jobs/JRRFS_MAKE_LBCS
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ hour zero).
# Set the parameters for the external model files.
#-----------------------------------------------------------------------

export extrn_mdl_name="${EXTRN_MDL_NAME}"
export extrn_mdl_name="${EXTRN_MDL_NAME_LBCS}"
sysbasedir="${EXTRN_MDL_SYSBASEDIR_LBCS}"
gfs_file_fmt="${GFS_FILE_FMT_LBCS}"
extrn_mdl_memhead="${GEFS_INPUT_SUBDIR}"
Expand Down Expand Up @@ -176,6 +176,11 @@ export RUN=${RUN:-rrfs}
export outid=${outid:-"LL$job"}
export jobid=${jobid:-taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

export DATA=${DATAROOT}/${jobid}
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_POST
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

export CYCLE_TYPE=${CYCLE_TYPE:-prod}
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_PRDGEN
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")
export CYCLE_TYPE=${CYCLE_TYPE:-prod}

Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_PREP_CYC
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

export CYCLE_TYPE=${CYCLE_TYPE:-prod}
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_SAVE_DA_OUTPUT
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

# NWGES_DIR is the directory in which the model IC file (DA analysis) will be saved
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_SAVE_RESTART
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")

export CYCLE_TYPE=${CYCLE_TYPE:-prod}
Expand Down
5 changes: 5 additions & 0 deletions jobs/JRRFS_UPDATE_LBC_SOIL
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export RUN=${RUN:-rrfs}
#export jobid=${jobid:-${taskid}}
export jobid=${taskid}

if [ $WGF = "enkf" ] || [ $WGF = "ensf" ]; then
export ENSMEM_INDX=`echo ${GDAS_MEM_NAME} | cut -c4-6`
else
export ENSMEM_INDX=""
fi
export mem_num=m$(echo "${ENSMEM_INDX}")
export CYCLE_TYPE=${CYCLE_TYPE:-prod}

Expand Down
4 changes: 2 additions & 2 deletions parm/FV3LAM_wflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ MODULES_RUN_TASK_FP script.
<envar><name>DATAROOT</name><value>&DATAROOT;</value></envar>
<envar><name>GESROOT</name><value>&GESROOT;</value></envar>
<envar><name>FG_ROOT</name><value><cyclestr>&FG_ROOT;</cyclestr></value></envar>
<envar><name>EXTRN_MDL_NAME</name><value>{{ extrn_mdl_name_ics }}</value></envar>
<envar><name>EXTRN_MDL_NAME_ICS</name><value>{{ extrn_mdl_name_ics }}</value></envar>
<envar><name>ENSMEM_INDX</name><value><cyclestr>#{{ ensmem_indx_name }}#</cyclestr></value></envar>
<envar><name>GEFS_INPUT_SUBDIR</name><value>#subdirGE#</value></envar>
<envar><name>WRF_MEM_NAME</name><value>#memNameWRF#</value></envar>
Expand Down Expand Up @@ -857,7 +857,7 @@ MODULES_RUN_TASK_FP script.
<envar><name>DATAROOT</name><value>&DATAROOT;</value></envar>
<envar><name>COMROOT</name><value>&COMROOT;</value></envar>
<envar><name>GESROOT</name><value>&GESROOT;</value></envar>
<envar><name>EXTRN_MDL_NAME</name><value>{{ extrn_mdl_name_lbcs }}</value></envar>
<envar><name>EXTRN_MDL_NAME_LBCS</name><value>{{ extrn_mdl_name_lbcs }}</value></envar>
<envar><name>BOUNDARY_LEN</name><value>{{ boundary_len_hrs }}</value></envar>
<envar><name>ENSMEM_INDX</name><value><cyclestr>#{{ ensmem_indx_name }}#</cyclestr></value></envar>
<envar><name>GEFS_INPUT_SUBDIR</name><value>#subdirGE#</value></envar>
Expand Down
4 changes: 2 additions & 2 deletions parm/FV3LAM_wflow_firewx.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ MODULES_RUN_TASK_FP script.
<envar><name>HOMErrfs</name><value>&HOMErrfs;</value></envar>
<envar><name>DATAROOT</name><value>&DATAROOT;</value></envar>
<envar><name>GESROOT</name><value>&GESROOT;</value></envar>
<envar><name>EXTRN_MDL_NAME</name><value>{{ extrn_mdl_name_ics }}</value></envar>
<envar><name>EXTRN_MDL_NAME_ICS</name><value>{{ extrn_mdl_name_ics }}</value></envar>
<envar><name>ENSMEM_INDX</name><value><cyclestr>#{{ ensmem_indx_name }}#</cyclestr></value></envar>
<envar><name>GEFS_INPUT_SUBDIR</name><value>#subdirGE#</value></envar>
<envar><name>envir</name><value>&envir;</value></envar>
Expand Down Expand Up @@ -339,7 +339,7 @@ MODULES_RUN_TASK_FP script.
<envar><name>DATAROOT</name><value>&DATAROOT;</value></envar>
<envar><name>COMROOT</name><value>&COMROOT;</value></envar>
<envar><name>GESROOT</name><value>&GESROOT;</value></envar>
<envar><name>EXTRN_MDL_NAME</name><value>{{ extrn_mdl_name_lbcs }}</value></envar>
<envar><name>EXTRN_MDL_NAME_LBCS</name><value>{{ extrn_mdl_name_lbcs }}</value></envar>
<envar><name>BOUNDARY_LEN</name><value>{{ boundary_len_hrs }}</value></envar>
<envar><name>ENSMEM_INDX</name><value><cyclestr>#{{ ensmem_indx_name }}#</cyclestr></value></envar>
<envar><name>GEFS_INPUT_SUBDIR</name><value>#subdirGE#</value></envar>
Expand Down
4 changes: 2 additions & 2 deletions parm/FV3LAM_wflow_nonDA.xml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ MODULES_RUN_TASK_FP script.
<envar><name>HOMErrfs</name><value>&HOMErrfs;</value></envar>
<envar><name>DATAROOT</name><value>&DATAROOT;</value></envar>
<envar><name>GESROOT</name><value>&GESROOT;</value></envar>
<envar><name>EXTRN_MDL_NAME</name><value>{{ extrn_mdl_name_ics }}</value></envar>
<envar><name>EXTRN_MDL_NAME_ICS</name><value>{{ extrn_mdl_name_ics }}</value></envar>
<envar><name>ENSMEM_INDX</name><value><cyclestr>#{{ ensmem_indx_name }}#</cyclestr></value></envar>
<envar><name>GEFS_INPUT_SUBDIR</name><value>#subdirGE#</value></envar>
<envar><name>envir</name><value>&envir;</value></envar>
Expand Down Expand Up @@ -349,7 +349,7 @@ MODULES_RUN_TASK_FP script.
<envar><name>DATAROOT</name><value>&DATAROOT;</value></envar>
<envar><name>COMROOT</name><value>&COMROOT;</value></envar>
<envar><name>GESROOT</name><value>&GESROOT;</value></envar>
<envar><name>EXTRN_MDL_NAME</name><value>{{ extrn_mdl_name_lbcs }}</value></envar>
<envar><name>EXTRN_MDL_NAME_LBCS</name><value>{{ extrn_mdl_name_lbcs }}</value></envar>
<envar><name>BOUNDARY_LEN</name><value>{{ boundary_len_hrs }}</value></envar>
<envar><name>ENSMEM_INDX</name><value><cyclestr>#{{ ensmem_indx_name }}#</cyclestr></value></envar>
<envar><name>GEFS_INPUT_SUBDIR</name><value>#subdirGE#</value></envar>
Expand Down
4 changes: 2 additions & 2 deletions ush/sample_configs/RRFS_A/config.sh_rrfs_a_enkf_n3
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ GFS_FILE_FMT_ICS="netcdf"
GFS_FILE_FMT_LBCS="grib2"

envir="para"
NET="rrfs_a"
MODEL="RRFS_A"
NET="rrfs"
MODEL="RRFS"

if [[ ${DO_ENSEMBLE} == "TRUE" ]]; then
NUM_ENS_MEMBERS=30
Expand Down
4 changes: 2 additions & 2 deletions ush/sample_configs/RRFS_A/config.sh_rrfs_a_n3
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ EXTRN_MDL_NAME_ICS="GFS"
EXTRN_MDL_NAME_LBCS="GFS"

envir="para"
NET="rrfs_a"
NET="rrfs"
TAG="n3v91"
MODEL="rrfs_a"
MODEL="rrfs"
RUN="rrfs"
WGF="det"

Expand Down

0 comments on commit 095f594

Please sign in to comment.