Skip to content

Commit

Permalink
Update syntax in config.efcs
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterKolczynski-NOAA committed Feb 3, 2024
1 parent 9febad9 commit ff1f787
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ ${FORECASTSH:-${SCRgfs}/exglobal_forecast.sh}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"

# Send DBN alerts for EnKF
# TODO: Should these be in post manager instead?
if [[ "${RUN}" =~ "enkf" ]] && [[ "${SENDDBN}" = YES ]]; then
for (( fhr = FHOUT; fhr <= FHMAX; fhr + FHOUT )); do
if (( fhr % 3 == 0 )); then
Expand Down
12 changes: 6 additions & 6 deletions parm/config/gefs/config.efcs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "BEGIN: config.efcs"
# export DO_ICE="NO"
# export DO_WAVE="NO"

export CASE=${CASE_ENS}
export CASE="${CASE_ENS}"

# Source model specific information that is resolution dependent
string="--fv3 ${CASE}"
Expand All @@ -28,14 +28,14 @@ source "${EXPDIR}/config.resources" efcs

# nggps_diag_nml
export FHOUT=${FHOUT_ENKF:-3}
if [[ ${RUN} == "enkfgfs" ]]; then
export FHOUT=${FHOUT_ENKF_GFS:-${FHOUT_ENKF:${FHOUT:-3}}}
if [[ "${RUN}" == "enkfgfs" ]]; then
export FHOUT=${FHOUT_ENKF_GFS:-${FHOUT}}
fi

# model_configure
export FHMAX=${FHMAX_ENKF:-9}
if [[ ${RUN} == "enkfgfs" ]]; then
export FHMAX=${FHMAX_ENKF_GFS:-${FHMAX_ENKF:-${FHMAX}}}
if [[ "${RUN}" == "enkfgfs" ]]; then
export FHMAX=${FHMAX_ENKF_GFS:-${FHMAX}}
fi

# Use serial I/O for ensemble (lustre?)
Expand All @@ -61,6 +61,6 @@ export SPPT_LSCALE=500000.
export SPPT_LOGIT=".true."
export SPPT_SFCLIMIT=".true."

export restart_interval=${restart_interval_gfs}
export restart_interval="${restart_interval_gfs}"

echo "END: config.efcs"
12 changes: 6 additions & 6 deletions parm/config/gfs/config.efcs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "BEGIN: config.efcs"
# export DO_ICE="NO"
export DO_WAVE="NO"

export CASE=${CASE_ENS}
export CASE="${CASE_ENS}"

# Source model specific information that is resolution dependent
string="--fv3 ${CASE}"
Expand All @@ -30,14 +30,14 @@ source "${EXPDIR}/config.ufs" ${string}
# nggps_diag_nml
export FHOUT=${FHOUT_ENKF:-3}
if [[ ${RUN} == "enkfgfs" ]]; then
export FHOUT=${FHOUT_ENKF_GFS:-${FHOUT_ENKF:${FHOUT:-3}}}
export FHOUT=${FHOUT_ENKF_GFS:-${FHOUT}}
fi

# model_configure
export FHMIN=${FHMIN_ENKF:-3}
export FHMAX=${FHMAX_ENKF:-9}
if [[ ${RUN} == "enkfgfs" ]]; then
export FHMAX=${FHMAX_ENKF_GFS:-${FHMAX_ENKF:-${FHMAX}}}
export FHMAX=${FHMAX_ENKF_GFS:-${FHMAX}}
fi

# Use serial I/O for ensemble (lustre?)
Expand Down Expand Up @@ -66,7 +66,7 @@ export SPPT_LSCALE=500000.
export SPPT_LOGIT=".true."
export SPPT_SFCLIMIT=".true."

if [[ "${QUILTING}" = ".true." ]] && [[ "${OUTPUT_GRID}" = "gaussian_grid" ]]; then
if [[ "${QUILTING}" == ".true." ]] && [[ "${OUTPUT_GRID}" == "gaussian_grid" ]]; then
export DIAG_TABLE="${HOMEgfs}/parm/ufs/fv3/diag_table_da"
else
export DIAG_TABLE="${HOMEgfs}/parm/ufs/fv3/diag_table_da_orig"
Expand All @@ -87,12 +87,12 @@ export shal_cnv=".true."
export FHZER=6

# Set PREFIX_ATMINC to r when recentering on
if [[ ${RECENTER_ENKF:-"YES"} = "YES" ]]; then
if [[ ${RECENTER_ENKF:-"YES"} == "YES" ]]; then
export PREFIX_ATMINC="r"
fi

# For IAU, write restarts at beginning of window also
if [[ "${DOIAU_ENKF:-}" = "YES" ]]; then
if [[ "${DOIAU_ENKF:-}" == "YES" ]]; then
export restart_interval="3"
else
export restart_interval="6"
Expand Down

0 comments on commit ff1f787

Please sign in to comment.