Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dev/job_cards/rocoto/prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ fi
# Create or Copy prepbufr, prepbufr.acft_profiles, nsstbufr files
# Do not fail on external errors
if [[ ${MAKE_PREPBUFR:-"YES"} == "YES" ]]; then
unset_strict
source "${USHglobal}/unset_strict.sh"
"${HOMEobsproc}/jobs/JOBSPROC_GLOBAL_PREP" && true
export err=$?
set_strict
source "${USHglobal}/set_strict.sh"
if [[ ${err} -ne 0 ]]; then
err_exit "JOBSPROC_GLOBAL_PREP job failed, ABORT!"
fi
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_AERO_ANALYSIS_GENERATE_BMATRIX
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_ATMOS_CHGRES_FORENKF
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

export GRIB=${GRIB:-pgrb2f}
export EXT=""
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_ATMOS_GEMPAK_META_NCDC
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

# Now set up GEMPAK/NTRANS environment

Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_ATMOS_VERFOZN
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

#############################################
# determine PDY and cyc for previous cycle
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_ATMOS_VERFRAD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

#############################################
# determine PDY and cyc for previous cycle
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_ENKF_POST
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGDAS_FIT2OBS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGEFS_WAVE_STAT
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"
source "${USHglobal}/wave_domain_grid.sh"

# Set COM Paths
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGEFS_WAVE_STAT_PNT
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

# Set COM Paths

Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_AWIPS_20KM_1P0DEG
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1}

Expand Down
7 changes: 5 additions & 2 deletions dev/jobs/JGFS_ATMOS_CYCLONE_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the exglobal script
Expand Down Expand Up @@ -43,10 +46,10 @@ export JYYYY=${PDY:0:4}
##############################################

# Do not fail on errors or unassigned variables in external code
unset_strict
source "${USHglobal}/unset_strict.sh"
"${SCRIPTens_tracker}/exgfs_tc_genesis.sh" && true
export err=$?
set_strict
source "${USHglobal}/set_strict.sh"
if [[ ${err} -ne 0 ]]; then
err_exit
fi
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_CYCLONE_TRACKER
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

export COMPONENT="atmos"

Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_FBWIND
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

export COMPONENT="atmos"

Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_FSU_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Define COM and Data directories
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

############################################
# Set up model and cycle specific variables
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_GEMPAK_META
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

###############################################
# Set MP variables
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_GEMPAK_NCDC_UPAPGIF
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

export MP_PULSE=0
export MP_TIMEOUT=2000
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_GEMPAK_PGRB2_SPEC
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

export COMPONENT="atmos"
export EXT=""
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_PGRB2_SPEC_NPOESS
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1}

Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGFS_ATMOS_POSTSND
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

########################################
# Runs GFS BUFR SOUNDINGS
Expand Down
7 changes: 5 additions & 2 deletions dev/jobs/JGFS_ATMOS_VERIFICATION
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

###############################################################
## Abstract:
Expand Down Expand Up @@ -38,11 +41,11 @@ done
if [[ "${RUN_GRID2GRID_STEP1}" == "YES" || "${RUN_GRID2OBS_STEP1}" == "YES" || "${RUN_PRECIP_STEP1}" == "YES" ]]; then
# Override the -e in VERIF_GLOBALSH's shebang and un-export SHELLOPTS
# TODO: clean up the verif-global script so it does not raise false-positive errors
unset_strict
source "${USHglobal}/unset_strict.sh"
export -n SHELLOPTS
bash -x "${VERIF_GLOBALSH}"
err=$?
set_strict
source "${USHglobal}/set_strict.sh"
if [[ ${err} -ne 0 ]]; then
exit "${err}"
fi
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_AERO_ANALYSIS_FINALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_AERO_ANALYSIS_INITIALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_AERO_ANALYSIS_VARIATIONAL
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ANALYSIS_STATS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
7 changes: 5 additions & 2 deletions dev/jobs/JGLOBAL_ARCHIVE_TARS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"
if [[ "${DO_WAVE}" == "YES" ]]; then
source "${EXPDIR}/config.wave"
source "${USHglobal}/wave_domain_grid.sh"
Expand Down Expand Up @@ -104,10 +107,10 @@ fi

# Do not export shell opts to the bash scripts in the htar/hsi wrappers
export -n SHELLOPTS
unset_strict
source "${USHglobal}/unset_strict.sh"
${GLOBALARCHIVESH:-${SCRglobal}/exglobal_archive_tars.py}
export err=$?
set_strict
source "${USHglobal}/set_strict.sh"
if [[ ${err} -ne 0 ]]; then
err_exit "failed to archive the COM structure"
fi
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ARCHIVE_VRFY
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ATMENS_ANALYSIS_FINALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ATMENS_ANALYSIS_FV3_INCREMENT
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ATMENS_ANALYSIS_INITIALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ATMENS_ANALYSIS_LETKF
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ATMENS_ANALYSIS_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
3 changes: 3 additions & 0 deletions dev/jobs/JGLOBAL_ATMENS_ANALYSIS_SOL
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ source "${HOMEglobal}/ush/jjob_standard_vars.sh"
#{% endif %}

source "${USHglobal}/jjob_shell_setup.sh"
# Set strict mode which will exit on error or undefined variable
# and exit on error in a pipeline (e.g. if a command in "cmd | cmd2" fails)
source "${USHglobal}/set_strict.sh"

##############################################
# Set variables used in the script
Expand Down
Loading
Loading