Skip to content

Commit

Permalink
Remove -DUSE_COND and -DMOIST_CAPPA for hydrostatic runs (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaqiongZhou-NOAA authored May 15, 2024
1 parent 9711488 commit cc8afe6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ option(GFS_TYPES "Enable compiler definition -DGFS_TYPES" OFF)
option(use_WRTCOMP "Enable compiler definition -Duse_WRTCOMP" OFF)
option(INTERNAL_FILE_NML "Enable compiler definition -DINTERNAL_FILE_NML" ON)
option(ENABLE_QUAD_PRECISION "Enable compiler definition -DENABLE_QUAD_PRECISION" ON)
option(HYDRO "Enable compiler definition -DHYDRO" OFF)

find_package(MPI REQUIRED)
if(OPENMP)
Expand Down Expand Up @@ -115,11 +116,13 @@ list(APPEND driver_srcs
list(APPEND fv3_srcs ${model_srcs}
${tools_srcs})

list(APPEND fv3_defs SPMD
MOIST_CAPPA
USE_COND)
list(APPEND fv3_defs SPMD)

# Additional (optional) compiler definitions
if (NOT HYDRO)
list(APPEND fv3_defs USE_COND MOIST_CAPPA)
endif()

if(DEBUG)
list(APPEND fv3_defs DEBUG)
endif()
Expand Down

0 comments on commit cc8afe6

Please sign in to comment.