Skip to content

Commit

Permalink
Merge pull request #2 from RobertoPadilla-NOAA/feature/gefs_wave_statgem
Browse files Browse the repository at this point in the history
Feature/gefs wave statgem
  • Loading branch information
WalterKolczynski-NOAA authored Mar 27, 2020
2 parents a1ed1c6 + 290f33c commit 7450b17
Show file tree
Hide file tree
Showing 5 changed files with 324 additions and 170 deletions.
17 changes: 16 additions & 1 deletion scripts/exglobal_fcst_nemsfv3gfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ if [ $cplwav = ".true." ]; then
wavprfx=${COMPONENTwave}${WAV_MEMBER}
for wavGRD in $waveGRD ; do
# Link wave IC for current cycle
$NLN ${WRDIR}/${sPDY}.${scyc}0000.restart.${wavGRD} $DATA/restart.${wavGRD}
# Elimanted dependency on sPDY scyc, only required in GFS with IAU, not GEFS
$NLN ${WRDIR}/${PDY}.${cyc}0000.${COMPONENTwave}${WAV_MEMBER}.restart.${wavGRD} $DATA/restart.${wavGRD}
eval $NLN $datwave/${wavprfx}.log.${wavGRD}.${PDY}${cyc} log.${wavGRD}
done
if [ "$WW3ICEINP" = "YES" ]; then
Expand Down Expand Up @@ -1229,7 +1230,21 @@ if [ $SEND = "YES" ]; then
done
fi
fi
fi

# Copy single wave restart file for GEFS
if [ $cplwav = ".true." ]; then
if [ "${COMPONENTwave}" = "gefswave" ]; then
WRDIR=$COMOUTWW3/${COMPONENTRSTwave}.${PDY}/${cyc}/restart
mkdir -p ${WRDIR}
RDATE=$($NDATE +$WAVCYCH $CDATE)
rPDY=$(echo $RDATE | cut -c1-8)
rcyc=$(echo $RDATE | cut -c9-10)
for wavGRD in $waveGRD ; do
# Copy wave IC for the next cycle
$NCP $DATA/${rPDY}.${rcyc}0000.restart.${wavGRD} ${WRDIR}/${rPDY}.${rcyc}0000.${COMPONENTwave}${WAV_MEMBER}.restart.${wavGRD}
done
fi
fi

#------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion scripts/exwave_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
# Update restart time is added offset relative to model start
RSTOFFSET=$(( ${RSTOFFSET} + ${RSTIOFF_WAV} ))
ymdh_rst_ini=`$NDATE ${RSTOFFSET} $YMDH`
RST2OFFSET=$(( ${RSTOFFSET} + ${RST2IOFF_WAV} ))
RST2OFFSET=$(( ${DT_2_RST_WAV} + ${RST2IOFF_WAV} ))
ymdh_rst2_ini=`$NDATE ${RST2OFFSET} $YMDH` # DT2 relative to first-first-cycle restart file
# First restart file for cycling
time_rst_ini="`echo $ymdh_rst_ini | cut -c1-8` `echo $ymdh_rst_ini | cut -c9-10`0000"
Expand Down
Loading

0 comments on commit 7450b17

Please sign in to comment.