diff --git a/sorc/build_all.sh b/sorc/build_all.sh index b2f4e6ce0e..33b440f242 100755 --- a/sorc/build_all.sh +++ b/sorc/build_all.sh @@ -108,6 +108,9 @@ fi #------------------------------------ # TODO: Commented out until components aligned for build #source ../versions/build.ver +if [[ "${MACHINE_ID}" == "noaacloud" ]] ; then + source "../versions/build.${MACHINE_ID}.ver" +fi #------------------------------------ # Exception Handling Init diff --git a/sorc/build_ufs.sh b/sorc/build_ufs.sh index 44c8c7a2ad..bacbf9fd85 100755 --- a/sorc/build_ufs.sh +++ b/sorc/build_ufs.sh @@ -41,6 +41,14 @@ COMPILE_NR=0 CLEAN_BEFORE=YES CLEAN_AFTER=NO +#TODO temp patch for build update for noaacload in advance of updating ufs_module.fd repo for global-workflow building +if [[ "${MACHINE_ID}" == "noaacloud" ]] ; then + patched=$(grep upp-addon-env modulefiles/ufs_noaacloud.intel.lua; echo $?) + if [[ ${patched} == "1" ]] ; then + patch -R modulefiles/ufs_noaacloud.intel.lua ../ufs_noaacloud.intel.diff + fi +fi + BUILD_JOBS=${BUILD_JOBS:-8} ./tests/compile.sh "${MACHINE_ID}" "${MAKE_OPT}" "${COMPILE_NR}" "intel" "${CLEAN_BEFORE}" "${CLEAN_AFTER}" mv "./tests/fv3_${COMPILE_NR}.exe" ./tests/ufs_model.x mv "./tests/modules.fv3_${COMPILE_NR}.lua" ./tests/modules.ufs_model.lua