diff --git a/sorc/link_workflow.sh b/sorc/link_workflow.sh index b3512d14d9..7106d1ed79 100755 --- a/sorc/link_workflow.sh +++ b/sorc/link_workflow.sh @@ -10,7 +10,7 @@ function usage() { Builds all of the global-workflow components by calling the individual build scripts in sequence. -Usage: ${BASH_SOURCE[0]} [-h][-o] +Usage: ${BASH_SOURCE[0]} [-h][-o][--nest] -h: Print this help message and exit -o: @@ -23,12 +23,17 @@ RUN_ENVIR="emc" # Reset option counter in case this script is sourced OPTIND=1 -while getopts ":ho" option; do +while getopts ":ho-:" option; do case "${option}" in h) usage ;; o) echo "-o option received, configuring for NCO" RUN_ENVIR="nco";; + -) + if [[ "${OPTARG}" == "nest" ]]; then + LINK_NEST=ON + fi + ;; :) echo "[${BASH_SOURCE[0]}]: ${option} requires an argument" usage @@ -78,6 +83,10 @@ esac # Source fix version file source "${HOMEgfs}/versions/fix.ver" +# global-nest uses different versions of orog and ugwd +if [[ "${LINK_NEST:-OFF}" == "ON" ]] ; then + source "${HOMEgfs}/versions/fix.nest.ver" +fi # Link wxflow in ush/python, workflow and ci/scripts # TODO: This will be unnecessary when wxflow is part of the virtualenv diff --git a/versions/fix.nest.ver b/versions/fix.nest.ver new file mode 100644 index 0000000000..d08ea32af1 --- /dev/null +++ b/versions/fix.nest.ver @@ -0,0 +1,4 @@ +#!/bin/bash +# Fix file subfolder versions +export orog_ver=global-nest.20240419 +export ugwd_ver=global-nest.20240419