-
Notifications
You must be signed in to change notification settings - Fork 2
Update ufs-bundle to build with head of develop of ufs-weather-model for ATM configuration #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 38 commits
db104fe
f6b30cd
e307be2
7ad6bc6
3119a2c
0dd0a61
7b6c402
30f7e45
d55e8f7
1bf0d74
0853610
cedd860
6263d82
2965dae
0e9437e
dd72818
4004a52
272e8b3
fbf67ae
dd406b5
6e031eb
5fdfb94
207abee
7da4abd
eba1898
7f57d2e
ca597c7
0cb33ca
0b3dd5a
6f0a04b
9676841
fc0ff17
bdbf774
7ac0a29
113f319
59a9064
618905d
70bec2e
70608c6
f5849ec
e39e115
470f196
13c0ee7
a24ff69
393ad39
3b78fac
36a97c2
136543d
d322768
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| # ########## | ||
|
|
||
| cmake_minimum_required( VERSION 3.12 FATAL_ERROR ) | ||
| include( ExternalProject ) | ||
|
|
||
| find_package( ecbuild 3.5 REQUIRED HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild) | ||
|
|
||
|
|
@@ -41,6 +42,7 @@ find_package(FMS 2022.04 REQUIRED COMPONENTS R4 R8) | |
|
|
||
| # Core JEDI repositories | ||
| # ---------------------- | ||
| #ecbuild_bundle( PROJECT oops GIT "https://github.com/jcsda-internal/oops.git" BRANCH feature/ufs-stateset) | ||
| ecbuild_bundle( PROJECT oops GIT "https://github.com/jcsda-internal/oops.git" BRANCH develop UPDATE ) | ||
| ecbuild_bundle( PROJECT vader GIT "https://github.com/jcsda-internal/vader.git" BRANCH develop UPDATE ) | ||
| ecbuild_bundle( PROJECT saber GIT "https://github.com/jcsda-internal/saber.git" BRANCH develop UPDATE ) | ||
|
|
@@ -57,9 +59,10 @@ ecbuild_bundle( PROJECT ioda-data GIT "https://github.com/JCSDA-internal/ioda-da | |
| ecbuild_bundle( PROJECT ioda GIT "https://github.com/jcsda-internal/ioda.git" BRANCH develop UPDATE ) | ||
|
|
||
| option(ENABLE_UFO_DATA "Obtain ufo test data from ufo-data repository (vs tarball)" ON) | ||
| ecbuild_bundle( PROJECT ufo-data GIT "https://github.com/jcsda-internal/ufo-data.git" BRANCH develop UPDATE ) | ||
| ecbuild_bundle( PROJECT ufo-data GIT "https://github.com/JCSDA-internal/ufo-data.git" BRANCH develop UPDATE ) | ||
| ecbuild_bundle( PROJECT ufo GIT "https://github.com/jcsda-internal/ufo.git" BRANCH develop UPDATE ) | ||
|
|
||
|
|
||
|
mark-a-potts marked this conversation as resolved.
Outdated
|
||
| # Options for building with certain models | ||
| # ---------------------------------------- | ||
| set(UFS_APP "ATM" CACHE STRING "Choose the UFS Application") | ||
|
|
@@ -78,8 +81,8 @@ include_directories(${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_INCLUDEDIR}) | |
| include_directories(${DEPEND_LIB_ROOT}/include_r8) | ||
| link_directories(${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}) | ||
|
|
||
| include( ExternalProject ) | ||
|
|
||
| # Set variables for UFS clone and build | ||
| # Needed to get correct OpenMP link libraries on macOS | ||
| set(UFS_CMAKE_EXE_LINKER_FLAGS "-L${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}") | ||
| find_package(OpenMP REQUIRED) | ||
|
|
@@ -95,12 +98,23 @@ else() | |
| set(UFS_CMAKE_BUILD_TYPE_FLAG "-DREPRO=ON") | ||
| endif() | ||
|
|
||
|
|
||
| set(UFS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ufs-weather-model) | ||
| set(UFS_REPO https://github.com/ufs-community/ufs-weather-model) | ||
| set(UFS_TAG "develop" ) | ||
| if(UFS_APP MATCHES "^(NG-GODAS)$") | ||
| set(patch_command ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/patches/ng-godas.patch <SOURCE_DIR> && cd <SOURCE_DIR> && git apply ng-godas.patch) | ||
| else() | ||
| set(patch_command "") | ||
| endif() | ||
|
|
||
| ExternalProject_Add(ufs-weather-model | ||
| PREFIX ${CMAKE_CURRENT_BINARY_DIR}/ufs-weather-model | ||
| GIT_REPOSITORY https://github.com/climbfuji/ufs-weather-model | ||
| GIT_REPOSITORY ${UFS_REPO} | ||
| GIT_SUBMODULES_RECURSE TRUE | ||
| GIT_TAG feature/consolidate_dom_update_20221114 # updated from develop on 2023/07/17 | ||
| SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ufs-weather-model | ||
| GIT_TAG ${UFS_TAG} | ||
| PATCH_COMMAND ${patch_command} | ||
| SOURCE_DIR ${UFS_SOURCE_DIR} | ||
| UPDATE_DISCONNECTED ON | ||
| INSTALL_DIR ${DEPEND_LIB_ROOT} | ||
| # DH* 20230316 turn off OpenMP for now ... | ||
|
|
@@ -132,42 +146,42 @@ add_library( stochastic_physics IMPORTED STATIC) | |
| add_library( fv3atm IMPORTED STATIC) | ||
| add_library( ccppphys IMPORTED STATIC) | ||
| add_library( mom6 IMPORTED STATIC) | ||
| set_target_properties( ufs PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libufs.a) | ||
| set_target_properties( ufs_aerosols PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libUFS_Aerosols.a) | ||
| set_target_properties( aerosols_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libAerosol_GridComp.a) | ||
| set_target_properties( gocart_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libGOCART2G_GridComp.a) | ||
| set_target_properties( ca2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libCA2G_GridComp.a) | ||
| set_target_properties( chem_shared PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libChem_Shared2G.a) | ||
| set_target_properties( gocart_process PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libProcess_Library.a) | ||
| set_target_properties( du2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libDU2G_GridComp.a) | ||
| set_target_properties( ni2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libNI2G_GridComp.a) | ||
| set_target_properties( ss2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libSS2G_GridComp.a) | ||
| set_target_properties( su2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libSU2G_GridComp.a) | ||
| set_target_properties( ga_environment PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libGA_Environment.a) | ||
| set_target_properties( cdeps PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libcdeps.a) | ||
| set_target_properties( cmeps PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libcmeps.a) | ||
| set_target_properties(ccpp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libccpp_framework.a) | ||
| set_target_properties(stochastic_physics PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libstochastic_physics.a) | ||
| set_target_properties(fv3atm PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libfv3atm.a) | ||
| set_target_properties(ccppphys PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libccpp_physics.a) | ||
| set_target_properties(mom6 PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libmom6.a) | ||
|
|
||
| if(UFS_APP MATCHES "^(ATM)$" OR UFS_APP MATCHES "^(ATMAERO)$" OR UFS_APP MATCHES "^(S2S)$") | ||
| ecbuild_bundle( PROJECT femps GIT "https://github.com/jcsda-internal/femps.git" TAG 1.2.0 ) | ||
| set_target_properties( ufs PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libufs.a ) | ||
| set_target_properties( ufs_aerosols PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libUFS_Aerosols.a ) | ||
| set_target_properties( aerosols_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libAerosol_GridComp.a ) | ||
| set_target_properties( gocart_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libGOCART2G_GridComp.a ) | ||
| set_target_properties( ca2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libCA2G_GridComp.a ) | ||
| set_target_properties( chem_shared PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libChem_Shared2G.a ) | ||
| set_target_properties( gocart_process PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libProcess_Library.a ) | ||
| set_target_properties( du2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libDU2G_GridComp.a ) | ||
| set_target_properties( ni2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libNI2G_GridComp.a ) | ||
| set_target_properties( ss2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libSS2G_GridComp.a ) | ||
| set_target_properties( su2g_gridcomp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libSU2G_GridComp.a ) | ||
| set_target_properties( ga_environment PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libGA_Environment.a ) | ||
| set_target_properties( cdeps PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libcdeps.a ) | ||
| set_target_properties( cmeps PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libcmeps.a ) | ||
| set_target_properties( ccpp PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libccpp_framework.a ) | ||
| set_target_properties( stochastic_physics PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libstochastic_physics.a ) | ||
| set_target_properties( fv3atm PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libfv3atm.a ) | ||
| set_target_properties( ccppphys PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libccpp_physics.a ) | ||
| set_target_properties( mom6 PROPERTIES IMPORTED_LOCATION ${DEPEND_LIB_ROOT}/${CMAKE_INSTALL_LIBDIR}/libmom6.a ) | ||
|
|
||
|
|
||
|
|
||
| ecbuild_bundle( PROJECT femps GIT "https://github.com/jcsda-internal/femps.git" TAG 1.2.0 ) | ||
| if(UFS_APP MATCHES "^(ATMAERO)$" OR UFS_APP MATCHES "^(S2S)$" OR UFS_APP MATCHES "^(ATM)$") | ||
| option(ENABLE_FV3_JEDI_DATA "Obtain fv3-jedi test data from fv3-jedi-data repository (vs tarball)" ON) | ||
| ecbuild_bundle( PROJECT fv3-jedi-data GIT "https://github.com/JCSDA-internal/fv3-jedi-data.git" BRANCH feature/ufs_dom UPDATE ) # updated from develop Dec 05 2023 | ||
| ecbuild_bundle( PROJECT fv3-jedi GIT "https://github.com/jcsda-internal/fv3-jedi.git" BRANCH feature/ufs_dom UPDATE ) # updated from develop Dec 12 2023 | ||
| if(UFS_APP MATCHES "^(S2S)$") | ||
| ecbuild_bundle( PROJECT soca GIT "https://github.com/jcsda-internal/soca.git" BRANCH feature/ufs_dom UPDATE ) # updated from develop Dec 12 2023 | ||
| add_dependencies(soca ufs-weather-model) | ||
| endif() | ||
| ecbuild_bundle( PROJECT fv3-jedi-data GIT "https://github.com/JCSDA-internal/fv3-jedi-data.git" BRANCH feature/ufs-EnsForecasts ) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still see a branch |
||
| ecbuild_bundle( PROJECT fv3-jedi GIT "https://github.com/jcsda-internal/fv3-jedi.git" BRANCH feature/ufs-EnsForecasts UPDATE ) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fv3-jedi branch |
||
| elseif(UFS_APP MATCHES "^(NG-GODAS)$") | ||
| ecbuild_bundle( PROJECT soca GIT "https://github.com/jcsda-internal/soca.git" BRANCH feature/ufs_dom UPDATE ) # updated from develop Dec 12 2023 | ||
| # ecbuild_bundle( PROJECT soca GIT "https://github.com/jcsda-internal/soca.git" BRANCH feature/ufs_dom UPDATE ) | ||
| ecbuild_bundle( PROJECT soca GIT "https://github.com/jcsda-internal/soca.git" BRANCH feature/ufs_mark UPDATE ) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Has this been merged already? |
||
| add_dependencies(soca ufs-weather-model) | ||
| else() | ||
| message(FATAL_ERROR "ufs-bundle unknown UFS_APP ${UFS_APP}") | ||
| endif() | ||
|
|
||
|
|
||
|
mark-a-potts marked this conversation as resolved.
Outdated
|
||
| # Build Doxygen documentation | ||
| # --------------------------- | ||
| option(BUILD_UFSJEDI_BUNDLE_DOC "Build documentation" OFF) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.