From aabfdccae440da7389195762601db7fcc09f6f11 Mon Sep 17 00:00:00 2001 From: "Xiaqiong.Zhou" Date: Tue, 23 Apr 2024 14:58:04 -0500 Subject: [PATCH] Remove -DUSE_COND and -DMOIST_CAPPA for hydrostatic runs --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32c8075cf..de1ad50cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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()