-
Notifications
You must be signed in to change notification settings - Fork 250
Building model
Denise Worthen edited this page Mar 25, 2021
·
16 revisions
This page is under construction
- build.sh is a simple wrapper that calls CMake build system
module use modulefiles/<machine>.<compiler> (i.e. orion.intel, hera.intel, hera.gnu)
module load fv3 (or fv3_debug)
- NOTE: On platform GAEA, you must first set up the lmod environment:
source /lustre/f2/pdata/esrl/gsd/contrib/lua-5.1.4.9/init/init_lmod.sh
- export before the call to build.sh, for example:
export CMAKE_FLAGS="-DAPP=S2S"
export CCPP_SUITES="FV3_GFS_2017_coupled,FV3_GFS_v16_coupled"
./build.sh
- build using one-line command, several examples:
Build the ufs-weather-model ATM app (standalone ATM):
CMAKE_FLAGS="-DAPP=ATM" CCPP_SUITES="FV3_GFS_2017_coupled,FV3_GFS_v16_coupled" ./build.sh > output 2>&1 &
Build the ufs-weather-model ATMW app (standalone ATM with waves):
CMAKE_FLAGS="-DAPP=ATMW" CCPP_SUITES="FV3_GFS_2017_coupled,FV3_GFS_v16_coupled" ./build.sh > output 2>&1 &
Build the ufs-weather-model S2S app (atm/ice/ocean):
CMAKE_FLAGS="-DAPP=S2S" CCPP_SUITES="FV3_GFS_2017_coupled,FV3_GFS_v16_coupled" ./build.sh > output 2>&1 &
Build the ufs-weather-model S2S app (coupled atm/ice/ocean) with debugging flags turned on, with verbose build messages, using a single build job and a specified build directory:
CMAKE_FLAGS="-DAPP=S2S -DDEBUG=ON" CCPP_SUITES="FV3_GFS_2017_coupled,FV3_GFS_2017_satmedmf_coupled,FV3_GFS_v15p2_coupled" BUILD_VERBOSE=1 BUILD_JOBS=1
BUILD_DIR=test_cpld ./build.sh > output 2>&1 &
Build the ufs-weather-model S2SW app (coupled atm/ice/ocean/waves):
CMAKE_FLAGS="-DAPP=S2SW" CCPP_SUITES="FV3_GFS_2017_coupled,FV3_GFS_2017_satmedmf_coupled,FV3_GFS_v15p2_coupled,FV3_GFS_v16beta_coupled" ./build.sh >output 2>&1 &
Build the ufs-weather-model NemsDATM app (NemsDATM/ocean/ice):
CMAKE_FLAGS="-DAPP=DATM_NEMS" ./build.sh >output 2>&1 &
In each case, the executable will be build/ufs_model
If you edit source code files, just run the same command again. CMake does not need to be cleaned (as much).
- File location is
ufs-weather-model/tests
- Sets up environment variables and calls build.sh
- Used by ufs-weather-model/tests/rt.sh
- For examples, see the second column of rows that start with
COMPILE
inufs-weather-model/tests/rt.conf
- Specify components to build, e.g.,
-
APP=S2S
(include ATM, MOM6, CICE, CMEPS) -
APP=S2SW
(include ATM, MOM6, CICE6, WAVES, CMEPS)
-
- Specify CCPP suite name, e.g.,
CCPP=Y SUITES=FV3_GFS_2017
CCPP=Y SUITES=FV3_GFS_2017_coupled
- Build in debug mode
DEBUG=Y
- Putting everything together, e.g.,
CCPP=Y SUITES=FV3_GFS_2017_coupled APP=S2SW
- Commit Queue
- WCOSS2/Acorn Library Install Status
- News
- Making code changes in the UFS weather model using the GitHub repository
- UFS weather model code commit tutorial recordings
- Building model
- Running regression tests
- Regression Test Policy for Weather Model Platforms and Compilers
- Running operational requirements tests
- Porting to a new machine
-
spack-stack - builds prerequisite software stack for the UFS WM, including NCEPLIBS and NCEPLIBS-external
- NCEPLIBS - builds bundled library dependencies
- NCEPLIBS-external - builds external library dependencies