Skip to content

Commit

Permalink
Hotfix: send the correct number of build jobs for the UFS (#2423)
Browse files Browse the repository at this point in the history
This fixes a bug in build_ufs.sh that was causing the UFS to always
build with 8 jobs (except on the cloud).
  • Loading branch information
DavidHuber-NOAA authored Mar 21, 2024
1 parent 4d1bf52 commit 03ba78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sorc/build_ufs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CLEAN_BEFORE=YES
CLEAN_AFTER=NO

if [[ "${MACHINE_ID}" != "noaacloud" ]]; then
./tests/compile.sh "${MACHINE_ID}" "${MAKE_OPT}" "${COMPILE_NR}" "intel" "${CLEAN_BEFORE}" "${CLEAN_AFTER}"
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
cp "./modulefiles/ufs_common.lua" ./tests/ufs_common.lua
Expand Down

0 comments on commit 03ba78a

Please sign in to comment.