Skip to content

Commit

Permalink
Merge pull request NOAA-GFDL#38 from GEOS-ESM/feature/mathomp4/fv3-no…
Browse files Browse the repository at this point in the history
…nhydrostatic-build

Updates to allow for building FV dynamics as non-hydrostatic
  • Loading branch information
mathomp4 authored Mar 25, 2021
2 parents 2c6b985 + fa7ba21 commit 26c8839
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ endif()

target_compile_definitions (${this} PRIVATE MAPL_MODE SPMD TIMING)

option(HYDROSTATIC "Build FV dynamics as hydrostatic" ON)
if (HYDROSTATIC)
ecbuild_info("Building FV dynamics as hydrostatic")
else()
ecbuild_info("Building FV dynamics as non-hydrostatic")
ecbuild_info("This sets MOIST_CAPPA and USE_COND preprocessor variables")
target_compile_definitions (${this} PRIVATE MOIST_CAPPA USE_COND)
endif ()

esma_add_subdirectories(
model/mapz-driver
model/tp-core-driver)

0 comments on commit 26c8839

Please sign in to comment.