Skip to content
2 changes: 1 addition & 1 deletion dev/scripts/exglobal_atmos_sfcanl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fi
# Loop over the dates in the window to update the surface restarts
for hr in "${!gcycle_dates[@]}"; do

gcycle_date="${gcycle_dates[hr]}"
export gcycle_date="${gcycle_dates[hr]}"
FHR="${soilinc_fhrs[hr]}"
echo "Updating surface restarts for ${gcycle_date} ..."

Expand Down
4 changes: 4 additions & 0 deletions dev/scripts/exglobal_enkf_sfc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ if [[ "${DOIAU}" == "YES" ]]; then

done # ensembles

export gcycle_date="${bPDY}${bcyc}"

"${CYCLESH}" && true
export err=$?
if [[ ${err} -ne 0 ]]; then
Expand Down Expand Up @@ -288,6 +290,8 @@ if [[ "${DOSFCANL_ENKF}" == "YES" ]]; then
fi
done

export gcycle_date="${PDY}${cyc}"

"${CYCLESH}" && true
export err=$?
if [[ ${err} -ne 0 ]]; then
Expand Down
12 changes: 6 additions & 6 deletions ush/global_cycle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ DELTSFC=${DELTSFC:-0}

LSOIL=${LSOIL:-4}
LSOIL_INCR=${LSOIL_INCR:-2}
FSMCL2=${FSMCL2:-60}
FSMCL2=${FSMCL2:-99999.}
FSLPL=${FSLPL:-99999.}
FSOTL=${FSOTL:-99999.}
FVETL=${FVETL:-99999.}
Expand Down Expand Up @@ -278,10 +278,10 @@ ln -fs "${FNSALC}" salclm
export PGM=${CYCLEXEC}
export pgm=${PGM}

iy=${PDY:0:4}
im=${PDY:4:2}
id=${PDY:6:2}
ih=${cyc}
iy=${gcycle_date:0:4}
im=${gcycle_date:4:2}
id=${gcycle_date:6:2}
ih=${gcycle_date:8:2}

export OMP_NUM_THREADS=${OMP_NUM_THREADS_CY:-${CYCLETHREAD:-1}}

Expand Down Expand Up @@ -340,7 +340,7 @@ cat << EOF > fort.37
/
EOF

${APRUNCY} "${CYCLEXEC}" 1> "${PGMOUT}" 2> "${PGMERR}"
${APRUNCY} "${CYCLEXEC}" 1>> "${PGMOUT}" 2>> "${PGMERR}"

export err=$?

Expand Down
Loading