Skip to content
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

Implementation of TOMAS in GCHP #252

Merged
merged 10 commits into from
Apr 7, 2023
Merged
8 changes: 7 additions & 1 deletion src/GCHP_GridComp/GEOSChem_GridComp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ set(USE_REAL8 ON CACHE BOOL
set(RRTMG OFF CACHE BOOL
"Switch to build RRTMG as a component of GEOS-Chem"
)
set(TOMAS OFF CACHE BOOL
"Switch to build TOMAS as a component of GEOS-Chem"
)
set(LUO_WETDEP OFF CACHE BOOL
"Switch to build the Luo et al (2020) wetdep scheme into GEOS-Chem"
)

# Local variables
set(GC_EXTERNAL_CONFIG TRUE)
set(GTMM FALSE)
set(TOMAS FALSE)
set(MECH "fullchem") # for now, we only support "fullchem"
set(GCHP TRUE)
set(MODEL_GCHP TRUE)
Expand All @@ -27,6 +29,9 @@ target_compile_definitions(GEOSChemBuildProperties INTERFACE
$<$<BOOL:${USE_REAL8}>:USE_REAL8> $<$<BOOL:${RRTMG}>:RRTMG>
$<$<BOOL:${ADJOINT}>:ADJOINT>
$<$<BOOL:${REVERSE_OPERATORS}>:REVERSE_OPERATORS>
$<$<BOOL:${TOMAS}>:TOMAS>
$<$<STREQUAL:${TOMAS_BINS},15>:TOMAS15>
$<$<STREQUAL:${TOMAS_BINS},40>:TOMAS40>
$<$<BOOL:${LUO_WETDEP}>:LUO_WETDEP>
)

Expand Down Expand Up @@ -125,6 +130,7 @@ set(MECH "fullchem")
gc_pretty_print(VARIABLE OMP IS_BOOLEAN)
gc_pretty_print(VARIABLE USE_REAL8 IS_BOOLEAN)
gc_pretty_print(VARIABLE APM IS_BOOLEAN)
gc_pretty_print(VARIABLE TOMAS IS_BOOLEAN)
gc_pretty_print(VARIABLE RRTMG IS_BOOLEAN)
gc_pretty_print(VARIABLE GTMM IS_BOOLEAN)
gc_pretty_print(VARIABLE LUO_WETDEP IS_BOOLEAN)
3 changes: 3 additions & 0 deletions src/GCHP_GridComp/HEMCO_GridComp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ add_subdirectory(HEMCO EXCLUDE_FROM_ALL)
target_compile_definitions(HEMCOBuildProperties INTERFACE
$<$<BOOL:${ADJOINT}>:ADJOINT>
$<$<BOOL:${REVERSE_OPERATORS}>:REVERSE_OPERATORS>
$<$<BOOL:${TOMAS}>:TOMAS>
$<$<STREQUAL:${TOMAS_BINS},15>:TOMAS15>
$<$<STREQUAL:${TOMAS_BINS},40>:TOMAS40>
""
)
2 changes: 1 addition & 1 deletion src/GCHP_GridComp/HEMCO_GridComp/HEMCO