Skip to content

Commit

Permalink
Fix for new hera ecflow requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianCurtis-NOAA committed Jul 23, 2021
1 parent c413ccf commit 0ce35b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ case $(hostname -f) in
hfe10) MACHINE_ID=hera ;; ### hera10
hfe11) MACHINE_ID=hera ;; ### hera11
hfe12) MACHINE_ID=hera ;; ### hera12
hecflow01) MACHINE_ID=hera ;; ### heraecflow01

fe1) MACHINE_ID=jet ;; ### jet01
fe2) MACHINE_ID=jet ;; ### jet02
Expand Down
9 changes: 7 additions & 2 deletions tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,13 @@ elif [[ $MACHINE_ID = hera.* ]]; then
PYTHONHOME=/scratch1/NCEPDEV/nems/emc.nemspara/soft/miniconda3_new_20210629
export PATH=$PYTHONHOME/bin:$PATH
export PYTHONPATH=$PYTHONHOME/lib/python3.7/site-packages
ECFLOW_START=$PYTHONHOME/bin/ecflow_start.sh
ECF_PORT=$(( $(id -u) + 1500 ))

if [[ ! $HOSTNAME = hecflow* ]]; then
echo "ERROR: On Hera we must be logged into 'hecflow' login nodes"
exit 1
fi
module load ecflow
ECFLOW_START=ecflow_start.sh

QUEUE=debug
COMPILE_QUEUE=batch
Expand Down
2 changes: 1 addition & 1 deletion tests/rt_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ ecflow_run() {
not_running=$?
if [[ $not_running -eq 1 ]]; then
echo "ecflow_server is NOT running on ${ECF_HOST}:${ECF_PORT}"
sh ${ECFLOW_START} -p ${ECF_PORT}
${ECFLOW_START} -p ${ECF_PORT}
else
echo "ecflow_server is already running on ${ECF_HOST}:${ECF_PORT}"
fi
Expand Down

0 comments on commit 0ce35b3

Please sign in to comment.