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

Add capability for TOMAS simulations in GCHP #359

Merged
merged 14 commits into from
Dec 6, 2023
Merged
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This file documents all notable changes to the GCHP wrapper repository starting

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased 14.3.0] - TBD
### Added
- Added capability for TOMAS simulations in GCHP

## [14.2.2] - 2023-10-23
### Changed
- Updated GEOS-Chem submodule to 14.2.2
Expand Down Expand Up @@ -75,7 +79,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Removed memory leaks in GEOS-Chem and HEMCO submodule code
- Units for State_Diag%RxnRate diagnostic are now `molec cm-3 s-1` instead of `s-1`


## [14.0.1] - 2022-10-31
### Changed
- Updated GEOS-Chem submodule to 14.0.1
Expand Down
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,6 +7,9 @@ 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"
)
Expand All @@ -15,7 +18,6 @@ set(LUO_WETDEP OFF CACHE BOOL
set(GC_EXTERNAL_CONFIG TRUE)
set(GTMM FALSE)
set(MECH "fullchem" CACHE STRING "Name of the chemistry mechanism to use")
set(TOMAS FALSE)
set(GCHP TRUE)
set(MODEL_GCHP TRUE)
set(MODEL_GCHPCTM 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 @@ gc_pretty_print(VARIABLE MECH OPTIONS "fullchem" "carbon" "custom")
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)
2 changes: 1 addition & 1 deletion src/GCHP_GridComp/GEOSChem_GridComp/geos-chem
Submodule geos-chem updated 49 files
+10 −2 CHANGELOG.md
+27 −21 GeosCore/aero_drydep.F90
+4 −7 GeosCore/aerosol_mod.F90
+137 −124 GeosCore/carbon_mod.F90
+3 −3 GeosCore/chemistry_mod.F90
+44 −44 GeosCore/diag3.F90
+7 −7 GeosCore/drydep_mod.F90
+31 −29 GeosCore/dust_mod.F90
+2 −1 GeosCore/emissions_mod.F90
+233 −57 GeosCore/fullchem_mod.F90
+9 −9 GeosCore/gamap_mod.F90
+13 −20 GeosCore/gc_environment_mod.F90
+1 −2 GeosCore/hco_interface_gc_mod.F90
+2 −6 GeosCore/hcoi_gc_diagn_mod.F90
+2 −2 GeosCore/input_mod.F90
+1 −0 GeosCore/mixing_mod.F90
+18 −18 GeosCore/ndxx_setup.F90
+1 −224 GeosCore/seasalt_mod.F90
+98 −81 GeosCore/sulfate_mod.F90
+740 −524 GeosCore/tomas_mod.F90
+23 −45 GeosCore/wetscav_mod.F90
+11 −0 Headers/state_chm_mod.F90
+1,743 −24 Headers/state_diag_mod.F90
+9 −7 KPP/custom/custom.eqn
+3 −0 KPP/fullchem/CHANGELOG_fullchem.md
+9 −8 KPP/fullchem/fullchem.eqn
+5 −1 KPP/fullchem/fullchem_HetStateFuncs.F90
+8,553 −8,530 KPP/fullchem/gckpp_Function.F90
+12,658 −12,652 KPP/fullchem/gckpp_Jacobian.F90
+764 −764 KPP/fullchem/gckpp_JacobianSP.F90
+1,996 −1,993 KPP/fullchem/gckpp_LinearAlgebra.F90
+191 −190 KPP/fullchem/gckpp_Monitor.F90
+253 −251 KPP/fullchem/gckpp_Parameters.F90
+512 −508 KPP/fullchem/gckpp_Util.F90
+2 −2 run/CESM/HEMCO_Config.rc
+14 −2 run/GCClassic/HEMCO_Config.rc.templates/HEMCO_Config.rc.fullchem
+488 −0 run/GCClassic/HISTORY.rc.templates/HISTORY.rc.fullchem
+16 −3 run/GCHP/HEMCO_Config.rc.templates/HEMCO_Config.rc.fullchem
+488 −0 run/GCHP/HISTORY.rc.templates/HISTORY.rc.fullchem
+5 −0 run/GCHP/createRunDir.sh
+36 −2 run/GCHP/setCommonRunSettings.sh.template
+2 −2 run/WRF/fullchem/HEMCO_Config.rc
+228 −84 run/shared/setupConfigFiles.sh
+8 −0 run/shared/species_database.yml
+81 −81 run/shared/species_database_tomas.yml
+0 −3 test/integration/GCClassic/integrationTestCreate.sh
+6 −3 test/integration/GCHP/integrationTestCreate.sh
+1 −2 test/parallel/GCClassic/parallelTestCompile.sh
+2 −6 test/shared/commonFunctionsForTests.sh
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>
""
)