Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@ FV3_postdet(){
done

# Replace sfc_data with sfcanl_data restart files from current cycle (if found)
if [[ "${MODE}" = "cycled" ]] && [[ "${CCPP_SUITE}" = "FV3_GFS_v16" ]]; then # TODO: remove if statement when global_cycle can handle NOAHMP
for file in "${COM_ATMOS_RESTART}/${sPDY}.${scyc}0000."*.nc; do
file2=$(basename "${file}")
file2=$(echo "${file2}" | cut -d. -f3-) # remove the date from file
fsufanl=$(echo "${file2}" | cut -d. -f1)
file2=$(echo "${file2}" | sed -e "s/sfcanl_data/sfc_data/g")
rm -f "${DATA}/INPUT/${file2}"
${NLN} "${file}" "${DATA}/INPUT/${file2}"
done
fi
for file in "${COM_ATMOS_RESTART}/${sPDY}.${scyc}0000."*.nc; do
file2=$(basename "${file}")
file2=$(echo "${file2}" | cut -d. -f3-) # remove the date from file
fsufanl=$(echo "${file2}" | cut -d. -f1)
file2=$(echo "${file2}" | sed -e "s/sfcanl_data/sfc_data/g")
rm -f "${DATA}/INPUT/${file2}"
${NLN} "${file}" "${DATA}/INPUT/${file2}"
done

# Need a coupler.res when doing IAU # FIXME: This is needed for warm_start, regardless of IAU.
if [[ ${DOIAU} = "YES" ]]; then
Expand Down