-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/feature/gfsv16b-wave' into fea…
…ture/gfsv16b-wave * upstream/feature/gfsv16b-wave: adding pnt jobs as seperate jobs for env moving definitions of wavempexec and wave_mpmd from jobs to env lowering the resource requirement for wave prep job update module for cdo updates to resources for wave jobs Fixing wavepostbndpnt dependency in setup_workflow_fcstonly.py cleaning up wave point post scripts rename wave post script remove gridded so can rename updates to boundary point Remove extra space from line Fix wavepostbndpnt dependency and increase wavepostbntpnt and wavepostpnt walltimes fix typos updating WCOSS work around for CDO, CDO_ROOT is missing from module file adding module use for cdo module on wcoss dell updates for new weights file and adding cdo module for wave prep Adding new wavepostbndpnt and wavepostpnt jobs updating wave post scripts for restructured format updates to JJOBs for wave post point for new structure changing exit 0 to exit number for FATAL errors in ice prep for waves updating error message and exit if there is no current input file update WAVE_PREP so that currents do not check for previous 24 hour so that parallels will be reproducible also deleted unused variable renaming wave job and scripts update jobs for waves Issue #94 - pull in two fixes for wave job setup in free-forecast mode updates for wave scripts to split them, also added updates from GEFS branch to add extra error checking updates from gefs post workflow: updates for re-run case as well as extra error messages
- Loading branch information
Showing
24 changed files
with
1,496 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
#!/bin/bash | ||
|
||
date | ||
export RUN_ENVIR=${RUN_ENVIR:-"nco"} | ||
export PS4=' $SECONDS + ' | ||
set -x -e | ||
|
||
############################# | ||
# Source relevant config files | ||
############################# | ||
configs="base wave wavepostsbs wavepostbndpnt" | ||
export EXPDIR=${EXPDIR:-$HOMEgfs/parm/config} | ||
config_path=${EXPDIR:-$NWROOT/gfs.${gfs_ver}/parm/config} | ||
for config in $configs; do | ||
. $config_path/config.$config | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
done | ||
|
||
########################################## | ||
# Source machine runtime environment | ||
########################################## | ||
. $HOMEgfs/env/${machine}.env wavepostbndpnt | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
|
||
# PATH for working directory | ||
export NET=${NET:-gfs} | ||
export RUN=${RUN:-gfs} | ||
export COMPONENT=${COMPONENT:-wave} | ||
|
||
export HOMEgefs=${HOMEgefs:-$NWROOT/$NET.${gefs_ver}} | ||
export HOMEgfs=${HOMEgfs:-$NWROOT/$NET.${gfs_ver}} | ||
|
||
# Add default errchk = err_chk | ||
export errchk=${errchk:-err_chk} | ||
|
||
# Create and go to DATA directory | ||
export DATA=${DATA:-${DATAROOT:?}/${jobid}} | ||
mkdir -p $DATA | ||
cd $DATA | ||
|
||
export cyc=${cyc:-00} | ||
export cycle=${cycle:-t${cyc}z} | ||
|
||
# Set PDY | ||
setpdy.sh | ||
sh ./PDY | ||
|
||
export pgmout=OUTPUT.$$ | ||
|
||
export MP_PULSE=0 | ||
|
||
# Path to HOME Directory | ||
export FIXwave=${FIXwave:-$HOMEgfs/fix/fix_wave_${NET}} | ||
export PARMwave=${PARMwave:-$HOMEgfs/parm/wave} | ||
export USHwave=${USHwave:-$HOMEgfs/ush} | ||
export EXECwave=${EXECwave:-$HOMEgfs/exec} | ||
|
||
# Set COM Paths and GETGES environment | ||
if [ $RUN_ENVIR = "nco" ]; then | ||
export ROTDIR=${COMROOT:?}/$NET/$envir | ||
fi | ||
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT} | ||
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT} | ||
|
||
export COMINice=${COMINice:-${COMROOTp2}/omb/prod} | ||
export COMINwnd=${COMINwnd:-${COMROOT}/gfs/prod} | ||
export COMIN_WAV_CUR=${COMIN_WAV_CUR:-${COMROOTp2}/rtofs/prod} | ||
|
||
mkdir -p $COMOUT/station | ||
|
||
env | sort | ||
|
||
# Set wave model ID tag to include member number | ||
# if ensemble; waveMEMB var empty in deterministic | ||
# Set wave model ID tag to include member number | ||
# if ensemble; waveMEMB var empty in deterministic | ||
membTAG='p' | ||
if [ "${waveMEMB}" == "00" ]; then membTAG='c'; fi | ||
export membTAG | ||
export WAV_MOD_TAG=${CDUMP}wave${waveMEMB} | ||
|
||
export CFP_VERBOSE=1 | ||
|
||
# Execute the Script | ||
$HOMEgfs/scripts/exgfs_wave_post_bndpnt.sh | ||
err=$? | ||
if [ $err -ne 0 ]; then | ||
msg="FATAL ERROR: ex-script of GWES_POST failed!" | ||
else | ||
msg="$job completed normally!" | ||
fi | ||
postmsg "$jlogfile" "$msg" | ||
|
||
########################################## | ||
# Remove the Temporary working directory | ||
########################################## | ||
cd $DATAROOT | ||
[[ $KEEPDATA = "NO" ]] && rm -rf $DATA | ||
|
||
date | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
#!/bin/bash | ||
|
||
date | ||
export RUN_ENVIR=${RUN_ENVIR:-"nco"} | ||
export PS4=' $SECONDS + ' | ||
set -x -e | ||
|
||
############################# | ||
# Source relevant config files | ||
############################# | ||
configs="base wave wavepostsbs wavepostpnt" | ||
export EXPDIR=${EXPDIR:-$HOMEgfs/parm/config} | ||
config_path=${EXPDIR:-$NWROOT/gfs.${gfs_ver}/parm/config} | ||
for config in $configs; do | ||
. $config_path/config.$config | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
done | ||
|
||
########################################## | ||
# Source machine runtime environment | ||
########################################## | ||
. $HOMEgfs/env/${machine}.env wavepostpnt | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
|
||
# PATH for working directory | ||
export NET=${NET:-gfs} | ||
export RUN=${RUN:-gfs} | ||
export COMPONENT=${COMPONENT:-wave} | ||
|
||
export HOMEgefs=${HOMEgefs:-$NWROOT/$NET.${gefs_ver}} | ||
export HOMEgfs=${HOMEgfs:-$NWROOT/$NET.${gfs_ver}} | ||
|
||
# Add default errchk = err_chk | ||
export errchk=${errchk:-err_chk} | ||
|
||
# Create and go to DATA directory | ||
export DATA=${DATA:-${DATAROOT:?}/${jobid}} | ||
mkdir -p $DATA | ||
cd $DATA | ||
|
||
export cyc=${cyc:-00} | ||
export cycle=${cycle:-t${cyc}z} | ||
|
||
# Set PDY | ||
setpdy.sh | ||
sh ./PDY | ||
|
||
export pgmout=OUTPUT.$$ | ||
|
||
export MP_PULSE=0 | ||
|
||
# Path to HOME Directory | ||
export FIXwave=${FIXwave:-$HOMEgfs/fix/fix_wave_${NET}} | ||
export PARMwave=${PARMwave:-$HOMEgfs/parm/wave} | ||
export USHwave=${USHwave:-$HOMEgfs/ush} | ||
export EXECwave=${EXECwave:-$HOMEgfs/exec} | ||
|
||
# Set COM Paths and GETGES environment | ||
if [ $RUN_ENVIR = "nco" ]; then | ||
export ROTDIR=${COMROOT:?}/$NET/$envir | ||
fi | ||
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT} | ||
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT} | ||
|
||
export COMINice=${COMINice:-${COMROOTp2}/omb/prod} | ||
export COMINwnd=${COMINwnd:-${COMROOT}/gfs/prod} | ||
export COMIN_WAV_CUR=${COMIN_WAV_CUR:-${COMROOTp2}/rtofs/prod} | ||
|
||
mkdir -p $COMOUT/station | ||
|
||
env | sort | ||
|
||
# Set wave model ID tag to include member number | ||
# if ensemble; waveMEMB var empty in deterministic | ||
# Set wave model ID tag to include member number | ||
# if ensemble; waveMEMB var empty in deterministic | ||
membTAG='p' | ||
if [ "${waveMEMB}" == "00" ]; then membTAG='c'; fi | ||
export membTAG | ||
export WAV_MOD_TAG=${CDUMP}wave${waveMEMB} | ||
|
||
export CFP_VERBOSE=1 | ||
|
||
# Execute the Script | ||
$HOMEgfs/scripts/exgfs_wave_post_pnt.sh | ||
err=$? | ||
if [ $err -ne 0 ]; then | ||
msg="FATAL ERROR: ex-script of GWES_POST failed!" | ||
else | ||
msg="$job completed normally!" | ||
fi | ||
postmsg "$jlogfile" "$msg" | ||
|
||
########################################## | ||
# Remove the Temporary working directory | ||
########################################## | ||
cd $DATAROOT | ||
[[ $KEEPDATA = "NO" ]] && rm -rf $DATA | ||
|
||
date | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/ksh -x | ||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO SOURCE FV3GFS WORKFLOW MODULES ===============" | ||
. $HOMEgfs/ush/load_fv3gfs_modules.sh | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO RUN WAVE_POST_BNDPNT ===============" | ||
# Execute the JJOB | ||
$HOMEgfs/jobs/JGLOBAL_WAVE_POST_BNDPNT | ||
status=$? | ||
exit $status | ||
|
||
############################################################### | ||
# Force Exit out cleanly | ||
if [ ${KEEPDATA:-"NO"} = "NO" ] ; then rm -rf $DATAROOT ; fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/ksh -x | ||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO SOURCE FV3GFS WORKFLOW MODULES ===============" | ||
. $HOMEgfs/ush/load_fv3gfs_modules.sh | ||
status=$? | ||
[[ $status -ne 0 ]] && exit $status | ||
|
||
############################################################### | ||
echo | ||
echo "=============== START TO RUN WAVE_POST_PNT ===============" | ||
# Execute the JJOB | ||
$HOMEgfs/jobs/JGLOBAL_WAVE_POST_PNT | ||
status=$? | ||
exit $status | ||
|
||
############################################################### | ||
# Force Exit out cleanly | ||
if [ ${KEEPDATA:-"NO"} = "NO" ] ; then rm -rf $DATAROOT ; fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.