Skip to content

Commit

Permalink
Fix staging of MOM data (NOAA-EMC#2028)
Browse files Browse the repository at this point in the history
During the update to stage_ic, the copying of the additional res_N files for
0p25 was omitted. These are now properly copied.

Resolves NOAA-EMC#2027
  • Loading branch information
WalterKolczynski-NOAA authored Nov 3, 2023
1 parent bd4c56d commit cbdc097
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/exglobal_stage_ic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,26 @@ for MEMDIR in "${MEMDIR_ARRAY[@]}"; do
rc=$?
((rc != 0)) && error_message "${src}" "${tgt}" "${rc}"
err=$((err + rc))
case "${OCNRES}" in
"500" | "100")
# Nothing more to do for these resolutions
;;
"025" )
for nn in $(seq 1 3); do
src="${BASE_CPLIC}/${CPL_OCNIC}/${PDY}${cyc}/${MEMDIR}/ocean/${PDY}.${cyc}0000.MOM.res_${nn}.nc"
tgt="${COM_OCEAN_RESTART}/${PDY}.${cyc}0000.MOM.res_${nn}.nc"
${NCP} "${src}" "${tgt}"
rc=$?
((rc != 0)) && error_message "${src}" "${tgt}" "${rc}"
err=$((err + rc))
done
;;
*)
echo "FATAL ERROR: Unsupported ocean resolution ${OCNRES}"
rc=1
err=$((err + rc))
;;
esac
fi
# Stage ice initial conditions to ROTDIR (warm start)
if [[ "${DO_ICE:-}" = "YES" ]]; then
Expand Down

0 comments on commit cbdc097

Please sign in to comment.