Skip to content

Commit

Permalink
Add RUN_TASK_RUN_PRDGEN flag to non-DA xml file, fix typo in RRFSFW c…
Browse files Browse the repository at this point in the history
…onfig file for WCOSS2
  • Loading branch information
BenjaminBlake-NOAA committed Jan 4, 2024
1 parent 0a6891a commit 3bca639
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 1 deletion.
8 changes: 8 additions & 0 deletions parm/FV3LAM_wflow_nonDA.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ Flags that specify whether to run the preprocessing tasks.
<!ENTITY RUN_TASK_MAKE_OROG "{{ run_task_make_orog | upper }}">
<!ENTITY RUN_TASK_MAKE_SFC_CLIMO "{{ run_task_make_sfc_climo | upper }}">

<!--
Flag that specifies whether to run the product generation task.
-->
<!ENTITY RUN_TASK_RUN_PRDGEN "{{ run_task_run_prdgen | upper }}">

<!--
Number of physical cores per node for the current machine. This is used
below in the <nodesize> tag, but that tag is not clearly documented. This
Expand Down Expand Up @@ -486,6 +491,8 @@ MODULES_RUN_TASK_FP script.

</task>
</metatask>

{%- if run_task_run_prdgen %}
<!--
************************************************************************
************************************************************************
Expand Down Expand Up @@ -517,5 +524,6 @@ MODULES_RUN_TASK_FP script.

</task>
</metatask>
{%- endif %}

</workflow>
5 changes: 5 additions & 0 deletions ush/config_defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,9 @@ SAVE_CYCLE_LOG="TRUE"
# SFC_CLIMO_DIR:
# Same as GRID_DIR but for the surface climatology generation task.
#
# RUN_TASK_RUN_PRDGEN:
# Same as RUN_TASK_MAKE_GRID but for the product generation task.
#
# IS_RTMA:
# If true, some ICs,LBCs,GSI rocoto tasks will be turned off
#
Expand Down Expand Up @@ -1535,6 +1538,8 @@ OROG_DIR=""
RUN_TASK_MAKE_SFC_CLIMO="FALSE"
SFC_CLIMO_DIR=""

RUN_TASK_RUN_PRDGEN="TRUE"

#
NCORES_PER_NODE=24 #Jet default value
IS_RTMA="FALSE"
Expand Down
2 changes: 2 additions & 0 deletions ush/generate_FV3LAM_wflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ settings="\
'run_task_make_grid': ${RUN_TASK_MAKE_GRID}
'run_task_make_orog': ${RUN_TASK_MAKE_OROG}
'run_task_make_sfc_climo': ${RUN_TASK_MAKE_SFC_CLIMO}
#
'run_task_run_prdgen': ${RUN_TASK_RUN_PRDGEN}
#
'is_rtma': ${IS_RTMA}
'fg_rootdir': ${FG_ROOTDIR}
Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/RRFSFW/config.rrfsfw.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ CYCL_HRS=( "18" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="TRUE"
NNODES_MAKE_SFC_CLIMO="6"
PPN_MAKE_SFC_CLIMO="12"

Expand Down
3 changes: 2 additions & 1 deletion ush/sample_configs/RRFSFW/config.rrfsfw.wcoss2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ CYCL_HRS=( "18" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="TRUE"
NNODES_MAKE_SFC_CLIMO="6"
PPN_MAKE_SFC_CLIMO="12"

Expand All @@ -62,7 +63,7 @@ DO_NON_DA_RUN="TRUE"
DO_RETRO="TRUE"
DO_SMOKE_DUST="FALSE"
VCOORD_FILE="global_hyblev_fcst_rrfsL65.txt"
WFLOW_XML_TMPL_FN="FV3LAM_wflow_firewx.xml"
WFLOW_XML_TMPL_FN="FV3LAM_wflow_nonDA.xml"
FV3_NML_YAML_CONFIG_FN=""
FV3_NML_BASE_SUITE_FN="input.nml.RRFSFW"

Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/non-DA_eng/config.nonDA.grib2.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "00" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "00" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/non-DA_eng/config.nonDA.grib2.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "00" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/non-DA_eng/config.nonDA.grib2.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "00" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/non-DA_eng/config.nonDA.netcdf.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "06" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "06" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/non-DA_eng/config.nonDA.netcdf.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "06" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/non-DA_eng/config.nonDA.netcdf.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "06" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CYCL_HRS=( "06" )
RUN_TASK_MAKE_GRID="TRUE"
RUN_TASK_MAKE_OROG="TRUE"
RUN_TASK_MAKE_SFC_CLIMO="TRUE"
RUN_TASK_RUN_PRDGEN="FALSE"

EXTRN_MDL_NAME_ICS="FV3GFS"
EXTRN_MDL_NAME_LBCS="FV3GFS"
Expand Down
21 changes: 21 additions & 0 deletions ush/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,27 @@ fi
#
#-----------------------------------------------------------------------
#
# Make sure that RUN_TASK_RUN_PRDGEN is set to a valid value.
#
#-----------------------------------------------------------------------
#
check_var_valid_value \
"RUN_TASK_RUN_PRDGEN" "valid_vals_RUN_TASK_RUN_PRDGEN"
#
# Set RUN_TASK_RUN_PRDGEN to either "TRUE" or "FALSE" so we don't
# have to consider other valid values later on.
#
RUN_TASK_RUN_PRDGEN=${RUN_TASK_RUN_PRDGEN^^}
if [ "${RUN_TASK_RUN_PRDGEN}" = "TRUE" ] || \
[ "${RUN_TASK_RUN_PRDGEN}" = "YES" ]; then
RUN_TASK_RUN_PRDGEN="TRUE"
elif [ "${RUN_TASK_RUN_PRDGEN}" = "FALSE" ] || \
[ "${RUN_TASK_RUN_PRDGEN}" = "NO" ]; then
RUN_TASK_RUN_PRDGEN="FALSE"
fi
#
#-----------------------------------------------------------------------
#
# Make sure that DO_SHUM is set to a valid value.
#
#-----------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions ush/valid_param_vals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ valid_vals_WRTCMP_output_grid=("rotated_latlon" "lambert_conformal" "regional_la
valid_vals_RUN_TASK_MAKE_GRID=("TRUE" "true" "YES" "yes" "FALSE" "false" "NO" "no")
valid_vals_RUN_TASK_MAKE_OROG=("TRUE" "true" "YES" "yes" "FALSE" "false" "NO" "no")
valid_vals_RUN_TASK_MAKE_SFC_CLIMO=("TRUE" "true" "YES" "yes" "FALSE" "false" "NO" "no")
valid_vals_RUN_TASK_RUN_PRDGEN=("TRUE" "true" "YES" "yes" "FALSE" "false" "NO" "no")
valid_vals_QUILTING=("TRUE" "true" "YES" "yes" "FALSE" "false" "NO" "no")
valid_vals_PRINT_ESMF=("TRUE" "true" "YES" "yes" "FALSE" "false" "NO" "no")
valid_vals_USE_CRON_TO_RELAUNCH=("TRUE" "true" "YES" "yes" "FALSE" "false" "NO" "no")
Expand Down

0 comments on commit 3bca639

Please sign in to comment.