Skip to content

Conversation

lizziel
Copy link

@lizziel lizziel commented Oct 3, 2025

Name and Institution (Required)

Name: Lizzie Lundgren
Institution: Harvard University

Describe the update

This PR makes the following changes:

  1. Adds import DELPDRY which is the GEOS-Chem restart file field DELP_DRY
  2. Adds new subroutine to scale tracers by ratio of import delta pressure from GEOS-Chem (ultimately from restart file) and delta pressure computed from import meteorology
  3. Applies scaling in the first timestep only, prior to the call to offline advection, so that species mass in restart file is conserved
  4. Removes compiler option PRINT_MASS which was not implemented into GCHP
  5. Adds config file option (in GCHP.rc) to turn on printing global mass proxy in advection, for investigating mass conservation
  6. Adds option debug prints, and associated subroutines for global mass sums, within the mass print blocks that can be uncommented for mass conservation debugging

This PR must be merged at the same time as two companion PRs:
geoschem/geos-chem#3062
geoschem/GCHP#515

Expected changes

This update results in small differences in all species in all GCHP simulations. GEOS-Chem Classic is not affected.

Reference(s)

None

Related Github Issue

geoschem/geos-chem#2536

lizziel added 14 commits October 2, 2025 14:42
Signed-off-by: Lizzie Lundgren <[email protected]>
The code in this block is only enabled by local variable chk_mass which is
set to false by default. To avoid confusion PRINT_MASS is now removed.

Signed-off-by: Lizzie Lundgren <[email protected]>
Use different model pressure based on if advection is on/off and if using
total or dry air pressure in advection. Only scale if DELPDRY import
is found and it contains non-zero values, meaning it was present in
the restart file.

Signed-off-by: Lizzie Lundgren <[email protected]>
This enables using the mass prints for single species simulations such as
the carbon simulation.

Signed-off-by: Lizzie Lundgren <[email protected]>
This avoids having to recompile code when turning this functionality
on/off.

Signed-off-by: Lizzie Lundgren <[email protected]>
The new subroutines give various options to computing global sums,
including sum of mixing ratios, delta pressures from model pressure,
import delta pressures, species proxy mass using import delta pressure,
and species proxy mass using model pressure. These functionalities are
useful for checking mass conservation.

Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
This entry should appear in GCHP config file GCHP.rc.

Signed-off-by: Lizzie Lundgren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant