Skip to content

Commit

Permalink
manualle merge NOAA-EMC#3023 code int
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuang-jedi committed Nov 8, 2024
1 parent 817d584 commit eb2c7b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sorc/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions sorc/build_ufs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb2c7b1

Please sign in to comment.