From dd21e8da5ff40199eb104ccd5cbf1e949ba47bcd Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Fri, 5 Apr 2024 17:29:17 -0400 Subject: [PATCH] flip the build for GFS and GEFS with waves --- ci/cases/yamls/build.yaml | 4 ++-- ci/scripts/clone-build_ci.sh | 2 +- docs/source/clone.rst | 2 +- sorc/build_all.sh | 10 +++++----- sorc/build_ufs.sh | 3 ++- sorc/build_ww3prepost.sh | 4 ++-- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ci/cases/yamls/build.yaml b/ci/cases/yamls/build.yaml index 87fae42584..2b2938719f 100644 --- a/ci/cases/yamls/build.yaml +++ b/ci/cases/yamls/build.yaml @@ -1,3 +1,3 @@ builds: - - gefs: './build_all.sh -k' - - gfs: './build_all.sh -kwgu' + - gefs: './build_all.sh -kw' + - gfs: './build_all.sh -kgu' diff --git a/ci/scripts/clone-build_ci.sh b/ci/scripts/clone-build_ci.sh index 989afabb80..798c98bf50 100755 --- a/ci/scripts/clone-build_ci.sh +++ b/ci/scripts/clone-build_ci.sh @@ -74,7 +74,7 @@ set +e source "${HOMEgfs}/ush/module-setup.sh" export BUILD_JOBS=8 rm -rf log.build -./build_all.sh -guw >> log.build 2>&1 +./build_all.sh -gu >> log.build 2>&1 build_status=$? DATE=$(date +'%D %r') diff --git a/docs/source/clone.rst b/docs/source/clone.rst index 4f47eb230f..c365f0ed0a 100644 --- a/docs/source/clone.rst +++ b/docs/source/clone.rst @@ -39,7 +39,7 @@ For coupled cycling (include new UFSDA) use the `-gu` options during build: ./build_all.sh -gu -For building with PDLIB for the wave model, use the `-w` options during build: +For building without PDLIB (unstructured grid) for the wave model, use the `-w` options during build: :: diff --git a/sorc/build_all.sh b/sorc/build_all.sh index d8374c269f..71c877b38d 100755 --- a/sorc/build_all.sh +++ b/sorc/build_all.sh @@ -34,7 +34,7 @@ Usage: ${BASH_SOURCE[0]} [-a UFS_app][-c build_config][-d][-h][-j n][-v][-w] -v: Execute all build scripts with -v option to turn on verbose where supported -w: - Use unstructured wave grid + Use structured wave grid EOF exit 1 } @@ -48,7 +48,7 @@ _build_ufsda="NO" _build_gsi="NO" _build_debug="" _verbose_opt="" -_wave_unst="" +_wave_opt="" _build_job_max=20 _quick_kill="NO" # Reset option counter in case this script is sourced @@ -63,7 +63,7 @@ while getopts ":a:dghj:kuvw" option; do k) _quick_kill="YES" ;; u) _build_ufsda="YES" ;; v) _verbose_opt="-v";; - w) _wave_unst="-w";; + w) _wave_opt="-w";; :) echo "[${BASH_SOURCE[0]}]: ${option} requires an argument" _usage @@ -126,7 +126,7 @@ declare -A build_opts big_jobs=0 build_jobs["ufs"]=8 big_jobs=$((big_jobs+1)) -build_opts["ufs"]="${_wave_unst} ${_verbose_opt} ${_build_ufs_opt} ${_build_debug}" +build_opts["ufs"]="${_wave_opt} ${_verbose_opt} ${_build_ufs_opt} ${_build_debug}" build_jobs["upp"]=2 build_opts["upp"]="${_build_debug}" @@ -138,7 +138,7 @@ build_jobs["gfs_utils"]=1 build_opts["gfs_utils"]="${_verbose_opt} ${_build_debug}" build_jobs["ww3prepost"]=2 -build_opts["ww3prepost"]="${_wave_unst} ${_verbose_opt} ${_build_ufs_opt} ${_build_debug}" +build_opts["ww3prepost"]="${_wave_opt} ${_verbose_opt} ${_build_ufs_opt} ${_build_debug}" # Optional DA builds if [[ "${_build_ufsda}" == "YES" ]]; then diff --git a/sorc/build_ufs.sh b/sorc/build_ufs.sh index 3055179f50..ac38d1dcbe 100755 --- a/sorc/build_ufs.sh +++ b/sorc/build_ufs.sh @@ -6,6 +6,7 @@ cwd=$(pwd) # Default settings APP="S2SWA" CCPP_SUITES="FV3_GFS_v17_p8_ugwpv1,FV3_GFS_v17_coupled_p8_ugwpv1" # TODO: does the g-w need to build with all these CCPP_SUITES? +PDLIB="ON" while getopts ":da:j:vw" option; do case "${option}" in @@ -13,7 +14,7 @@ while getopts ":da:j:vw" option; do a) APP="${OPTARG}";; j) BUILD_JOBS="${OPTARG}";; v) export BUILD_VERBOSE="YES";; - w) PDLIB="ON";; + w) PDLIB="OFF";; :) echo "[${BASH_SOURCE[0]}]: ${option} requires an argument" ;; diff --git a/sorc/build_ww3prepost.sh b/sorc/build_ww3prepost.sh index 5b527a1641..67ee5e1dc2 100755 --- a/sorc/build_ww3prepost.sh +++ b/sorc/build_ww3prepost.sh @@ -6,7 +6,7 @@ cd "${script_dir}" || exit 1 # Default settings APP="S2SWA" -PDLIB="OFF" +PDLIB="ON" while getopts ":j:a:dvw" option; do case "${option}" in @@ -14,7 +14,7 @@ while getopts ":j:a:dvw" option; do d) BUILD_TYPE="Debug";; j) BUILD_JOBS="${OPTARG}";; v) export BUILD_VERBOSE="YES";; - w) PDLIB="ON";; + w) PDLIB="OFF";; :) echo "[${BASH_SOURCE[0]}]: ${option} requires an argument" usage