Skip to content

Commit

Permalink
Move dest_file outside if-statement
Browse files Browse the repository at this point in the history
The dest_file variable has been moved outside of if-statement in forecast_postdet.
  • Loading branch information
EricSinsky-NOAA committed Jul 16, 2024
1 parent 0dba84e commit fb440c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,10 @@ MOM6_postdet() {
# Native model output uses window midpoint in the filename, but we are mapping that to the end of the period for COM
if (( OFFSET_START_HOUR > 0 )) && (( fhr == FHOUT_OCN ));then
source_file="ocn_lead1_${vdate_mid:0:4}_${vdate_mid:4:2}_${vdate_mid:6:2}_${vdate_mid:8:2}.nc"
dest_file="${RUN}.ocean.t${cyc}z.${interval}hr_avg.f${fhr3}.nc"
else
source_file="ocn_${vdate_mid:0:4}_${vdate_mid:4:2}_${vdate_mid:6:2}_${vdate_mid:8:2}.nc"
dest_file="${RUN}.ocean.t${cyc}z.${interval}hr_avg.f${fhr3}.nc"
fi
dest_file="${RUN}.ocean.t${cyc}z.${interval}hr_avg.f${fhr3}.nc"
${NLN} "${COMOUT_OCEAN_HISTORY}/${dest_file}" "${DATA}/MOM6_OUTPUT/${source_file}"

last_fhr=${fhr}
Expand Down

0 comments on commit fb440c6

Please sign in to comment.