From 869f63f62f4f32b9bcc74492b57414eab851793b Mon Sep 17 00:00:00 2001 From: William Putman Date: Tue, 1 Dec 2026 13:46:43 -0500 Subject: [PATCH] PChem: CHM token of MODEL_CONFIG replaces the LM == 72 tests The H2O and OX production / loss settings that were selected by LM == 72 follow the CHM token of MODEL_CONFIG (GEOS_ConfigMod, GMAO_Shared). L72 and other level counts are unchanged by default. --- GEOSpchem_GridComp/CMakeLists.txt | 2 +- GEOSpchem_GridComp/GEOS_PChemGridComp.F90 | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/GEOSpchem_GridComp/CMakeLists.txt b/GEOSpchem_GridComp/CMakeLists.txt index 44effab9..f1eb8457 100644 --- a/GEOSpchem_GridComp/CMakeLists.txt +++ b/GEOSpchem_GridComp/CMakeLists.txt @@ -2,4 +2,4 @@ esma_set_this () esma_add_library (${this} SRCS GEOS_PChemGridComp.F90 - DEPENDENCIES MAPL MAPL_cfio_r4 Chem_Base ESMF::ESMF NetCDF::NetCDF_Fortran) + DEPENDENCIES MAPL MAPL_cfio_r4 GEOS_Shared Chem_Base ESMF::ESMF NetCDF::NetCDF_Fortran) diff --git a/GEOSpchem_GridComp/GEOS_PChemGridComp.F90 b/GEOSpchem_GridComp/GEOS_PChemGridComp.F90 index c3fae6e2..f942242b 100644 --- a/GEOSpchem_GridComp/GEOS_PChemGridComp.F90 +++ b/GEOSpchem_GridComp/GEOS_PChemGridComp.F90 @@ -112,6 +112,7 @@ module GEOS_PChemGridCompMod use ESMF use MAPL use Chem_Mod + use GEOS_ConfigMod, only: jason_on use netcdf @@ -1783,7 +1784,7 @@ subroutine UPDATE(NN,NAME,XX) end do if(trim(NAME)=="H2O") then - if (LM == 72) then + if (jason_on(MAPL, 'CHM', LM)) then call MAPL_GetResource(MAPL, DELP, LABEL=trim(NAME)//"_DELP:" , DEFAULT=5000. ,RC=STATUS) VERIFY_(STATUS) else @@ -1829,7 +1830,7 @@ subroutine UPDATE(NN,NAME,XX) deallocate(WRK) endif elseif(trim(NAME)=="OX") then - if (LM == 72) then + if (jason_on(MAPL, 'CHM', LM)) then call MAPL_GetResource(MAPL, DELP, LABEL=trim(NAME)//"_DELP:" , DEFAULT=5000. ,RC=STATUS) VERIFY_(STATUS) else @@ -1951,7 +1952,7 @@ subroutine UPDATE_H2O_PL(NAME,XX) enddo end do - if (LM == 72) then + if (jason_on(MAPL, 'CHM', LM)) then call MAPL_GetResource(MAPL, DELP, LABEL=trim(NAME)//"_DELP:" , DEFAULT=5000. ,RC=STATUS) VERIFY_(STATUS) call MAPL_GetResource(MAPL, PCRIT, LABEL=trim(NAME)//"_PCRIT:", DEFAULT=20000., RC=STATUS)