Skip to content

Commit

Permalink
Debug the stage_ic job
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Jan 17, 2025
1 parent 01eeb24 commit 5d6776d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
8 changes: 8 additions & 0 deletions jobs/JGLOBAL_STAGE_IC
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#! /usr/bin/env bash

set -x
echo "Beginning of JGLOBAL_STAGE_IC"
env
source "${HOMEgfs}/ush/preamble.sh"
echo "After preamble"
set -x
env
source "${HOMEgfs}/ush/jjob_header.sh" -e "stage_ic" -c "base stage_ic"
echo "After jjob_header"
env

# Execute staging
"${SCRgfs}/exglobal_stage_ic.py"
Expand Down
5 changes: 4 additions & 1 deletion jobs/rocoto/stage_ic.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#! /usr/bin/env bash

set -x
echo "Starting env"
env
source "${HOMEgfs}/ush/preamble.sh"

# Source FV3GFS workflow modules
. "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
Expand All @@ -10,6 +12,7 @@ status=$?
export job="stage_ic"
export jobid="${job}.$$"

env
# Execute the JJOB
"${HOMEgfs}/jobs/JGLOBAL_STAGE_IC"
status=$?
Expand Down
1 change: 1 addition & 0 deletions ush/detect_machine.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -x

# The authoritative copy of this script lives in the ufs-weather-model at:
# https://github.com/ufs-community/ufs-weather-model/blob/develop/tests/detect_machine.sh
Expand Down
1 change: 1 addition & 0 deletions ush/jjob_header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# [default: "YES"]
# - $pid : Override the default process id
# [default: $$]
set -x

OPTIND=1
while getopts "c:e:" option; do
Expand Down
6 changes: 5 additions & 1 deletion ush/load_fv3gfs_modules.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
#! /usr/bin/env bash

###############################################################
if [[ "${DEBUG_WORKFLOW:-NO}" == "NO" ]]; then
if [[ "YES" == "NO" ]]; then
echo "Loading modules quietly..."
set +x
fi
# Just to be sure
set -x

# Setup runtime environment by loading modules
ulimit_s=$( ulimit -S -s )

# Find module command and purge:
source "${HOMEgfs}/ush/detect_machine.sh"
set -x
source "${HOMEgfs}/ush/module-setup.sh"
set -x

# Source versions file for runtime
source "${HOMEgfs}/versions/run.ver"
Expand Down
2 changes: 1 addition & 1 deletion ush/module-setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -u
set -ux

source "${HOMEgfs}/ush/detect_machine.sh"

Expand Down

0 comments on commit 5d6776d

Please sign in to comment.