Skip to content

Commit

Permalink
Set stochini to true to use stoch restart patterns
Browse files Browse the repository at this point in the history
Adds the namelist flag so the stochastic pattern restart files
get read when doing a RERUN.

Refs NOAA-EMC#2937
  • Loading branch information
WalterKolczynski-NOAA committed Nov 7, 2024
1 parent 105b8df commit 534ae2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 11 additions & 7 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ FV3_postdet() {
done

if [[ "${RERUN}" == "YES" ]]; then
file_list=$(stoch_restarts)
echo "Copying stochastic restarts for 'RUN=${RUN}' at '${restart_date}' from '${restart_dir}'"
for stoch_file in $(stoch_restarts); do
restart_file="${restart_date:0:8}.${restart_date:8:2}0000.${stoch_file}"
${NCP} "${restart_dir}/${restart_file}" "${DATA}/INPUT/${stoch_file}" \
|| ( echo "FATAL ERROR: Unable to copy stochastic restart, ABORT!"; exit 1 )
done
if [[ "${DO_SPPT:-}" == "YES" || "${DO_SKEB:-}" == "YES" || \
"${DO_SHUM:-}" == "YES" || "${DO_LAND_PERT:-}" == "YES" ]]; then
stochini=".true."
file_list=$(stoch_restarts)
echo "Copying stochastic restarts for 'RUN=${RUN}' at '${restart_date}' from '${restart_dir}'"
for stoch_file in $(stoch_restarts); do
restart_file="${restart_date:0:8}.${restart_date:8:2}0000.${stoch_file}"
${NCP} "${restart_dir}/${restart_file}" "${DATA}/INPUT/${stoch_file}" \
|| ( echo "FATAL ERROR: Unable to copy stochastic restart, ABORT!"; exit 1 )
done
fi
else
# Replace sfc_data with sfcanl_data restart files from current cycle (if found)
local nn
Expand Down
1 change: 1 addition & 0 deletions ush/parsing_namelists_FV3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ if [[ "${DO_SPPT}" = "YES" || "${DO_SHUM}" = "YES" || "${DO_SKEB}" = "YES" || "$

cat >> input.nml << EOF
&nam_stochy
stochini=${stochini:-".false."}
EOF

if [[ ${DO_SKEB} = "YES" ]]; then
Expand Down

0 comments on commit 534ae2a

Please sign in to comment.