Skip to content

Commit 7d30096

Browse files
updates to run atmo_post on wcoss2
1 parent 2d75466 commit 7d30096

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ush/process_atmos_daily.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ dest_inst="${OUTDIR}/inst.daily.${MEMDIR}/inst.daily.${filename_start}${filemm}$
9797
if [ -d "${tmp_acc_work_dir}" ]; then
9898
# Clear array and fill it using mapfile
9999
unset acc_files
100-
mapfile -t acc_files < <(ls -v "${tmp_acc_work_dir}"/daily_acc*.grb 2>/dev/null)
100+
acc_string=$(ls -v "${tmp_acc_work_dir}"/daily_acc*.grb 2>/dev/null)
101+
mapfile -t acc_files <<< "${acc_string}"
101102

102103
if [ ${#acc_files[@]} -gt 0 ]; then
103104
echo "INFO: Task $i merging ${#acc_files[@]} days for ACC using array expansion."
@@ -110,8 +111,10 @@ fi
110111

111112
# 2. Consolidate Instantaneous (INST)
112113
if [ -d "${tmp_inst_work_dir}" ]; then
114+
# Clear array and fill it using mapfile
113115
unset inst_files
114-
mapfile -t inst_files < <(ls -v "${tmp_inst_work_dir}"/daily_inst*.grb 2>/dev/null)
116+
inst_string=$(ls -v "${tmp_inst_work_dir}"/daily_inst*.grb 2>/dev/null)
117+
mapfile -t inst_files <<< "${inst_string}"
115118

116119
if [ ${#inst_files[@]} -gt 0 ]; then
117120
echo "INFO: Task $i merging ${#inst_files[@]} days for INST using array expansion."

0 commit comments

Comments
 (0)