forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combines the checkout and build from the standard and coupled workflows system that checks out the current UFS. The model source directory is now ufs_model.fd rather than fv3gfs.fd or ufs_coupled.fd. The build script is renamed build_ufs.sh and the link script is renamed to simply link.sh. The checkout script checks out the same UFS version (current as of 2021 Jul 20) for all applications, removing the coupled option from the coupled branch. A new option, -m, allows the user to specify a different model hash to check out. Checkout log files are now placed in the logs directory like the build logs in order to keep the sorc directory clean. Two new options are added to the build_all script: -c to build the coupled (S2SW) app, and -a to build the aerosol (ATMAERO) app. Without either argument, the traditional (ATMW) app is built. If either option is provided, the cpl_build.cfg file controls which executables are built; otherwise fv3gfs_build.cfg is still used. The build_ufs script corre- spondingly accepts the same options. The reg2grb2 source directory is copied over from the coupled model and cmake files for workflow_utils are updated correspondingly to build. Additionally, the build_workflow_utils modulefiles are updated to use the ncio module in hpc-stack and the hack that cloned and built it as part of the workflow_utils build is removed. The build_ww3prepost script is updated to make the code more easily main- tained and the corresponding modulefiles are updated to remove unnecessary modules. The link script is updated to the new fix location (ending in fix_NEW) removes links with targets that no longer exist. A new third argument to link, coupled, is added to additionally link files needed by the coupled system. Note that while the checkout, build, and link have all been tested and complete without error, the workflow is otherwise untested and may not work until additional updates are made to use the current UFS. Refs: NOAA-EMC#366, NOAA-EMC#368, NOAA-EMC#374
- Loading branch information
1 parent
2d5a8ec
commit b4ee33a
Showing
21 changed files
with
1,925 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#! /usr/bin/env bash | ||
set -eux | ||
|
||
# Build ATMW by default | ||
APP="ATMW" | ||
CCPP_SUITES="FV3_GFS_v16,FV3_GFS_v16_RRTMGP,FV3_GFS_v16_ugwpv1" | ||
|
||
while getopts "ac" option; do | ||
case "${option}" in | ||
a) | ||
APP="ATMAERO" | ||
CCPP_SUITES="FV3_GFS_v16,FV3_GFS_v16_ugwpv1" | ||
shift | ||
;; | ||
c) | ||
APP="S2SW" | ||
CCPP_SUITES="FV3_GFS_v16_coupled,FV3_GFS_v16_couplednsst,FV3_GFS_v16_coupled_nsstNoahmpUGWPv1" | ||
shift | ||
;; | ||
*) | ||
echo "Unrecognized option: ${1}" | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
source ./machine-setup.sh > /dev/null 2>&1 | ||
cwd=$(pwd) | ||
|
||
# Remove previous build directory if it exists | ||
if [ -d ufs_model.fd/build ]; then | ||
rm -R ufs_model.fd/build | ||
fi | ||
|
||
# Set target platform | ||
case "${target}" in | ||
hera|orion|stampede) | ||
target=${target}.intel | ||
;; | ||
esac | ||
|
||
MOD_PATH=$cwd/ufs_model.fd/modulefiles | ||
|
||
module purge | ||
|
||
cd ufs_model.fd/ | ||
module use ${MOD_PATH} | ||
module load ufs_${target} | ||
CMAKE_FLAGS="-DAPP=${APP} -DCCPP_SUITES=${CCPP_SUITES}" ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.