-
Notifications
You must be signed in to change notification settings - Fork 170
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
Fix mass non-conservation in VDIFF PBL mixing #2428
Merged
yantosca
merged 1 commit into
geoschem:dev/14.5.0
from
nicholasbalasus:bugfix/mass-conservation
Aug 28, 2024
Merged
Fix mass non-conservation in VDIFF PBL mixing #2428
yantosca
merged 1 commit into
geoschem:dev/14.5.0
from
nicholasbalasus:bugfix/mass-conservation
Aug 28, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update CHANGELOG update CHANGELOG
yantosca
changed the title
Bugfix/mass-conservation
Fix mass non-conservation in VDIFF PBL mixing
Aug 21, 2024
yantosca
added
category: Bug Fix
Fixes a previously-reported bug
topic: Convection and Mixing
Related to cloud convection and PBL mixing
labels
Aug 21, 2024
yantosca
approved these changes
Aug 21, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nicholasbalasus! I'll start testing this to bring it into 14.5.0.
All GEOS-Chem Classic integration tests passed, except ModelE2.1: ==============================================================================
GEOS-Chem Classic: Execution Test Results
CodeDir : edaa239 GEOS-Chem & HEMCO updates: Merge PR #2318, PR #284, PR #285
GEOS-Chem : 443a91a57 mass conservation fixes
HEMCO : d0d5fca PR #285 post-merge fix: Update CHANGELOG.md
Cloud-J : d20050f Update version to 7.7.3
HETP : 2a99b24 Merge pull request #2 from geoschem/bugfix/initialize_local_variables
Using 24 OpenMP threads
Number of execution tests: 30
Submitted as SLURM job: 44461598
==============================================================================
...
gc_2x25_ModelE2.1_fullchem..........................Execute Simulation....FAIL
...
Summary of test results:
------------------------------------------------------------------------------
Execution tests passed: 29
Execution tests failed: 1
Execution tests not yet completed: 0 The ModelE2.1 failure is due to a missing file as described in #2427. |
All GCHP integration tests also passed: ==============================================================================
GCHP: Execution Test Results
CodeDir : 86bcfa9 GEOS-Chem & HEMCO updates: Merge PR #2318, PR #284, PR #285
MAPL : 231d53c Merge pull request #36 from geoschem/feature/improve_hflux_regridding
GMAO_Shared : 4ddb3ec Merge pull request #2 from geoschem/feature/mapl-upgrade
ESMA_cmake : ad5deba Added ecbuild as a submodule of ESMA_cmake
gFTL-shared : 4b82492 Merge branch 'upstream_v1.5.0' into feature/v1.5.0
FMS : 259759d Merge pull request #3 from geoschem/feature/update_gmao_libs
FVdycoreCubed : af42462 Merge PR #8 (Add PLEadv diagnostic for offline advection in GCHP)
geos-chem : 443a91a57 mass conservation fixes
HEMCO : d0d5fca PR #285 post-merge fix: Update CHANGELOG.md
yaFyaml : 19afe50 Merge branch 'upstream_v1.0.4' into feature/v1.0.4
pFlogger : 2c4b724 Merge branch 'upstream_v1.9.1' into feature/v1.9.1
Cloud-J : d20050f Update version to 7.7.3
HETP : 2a99b24 Merge pull request #2 from geoschem/bugfix/initialize_local_variables
Number of execution tests: 12
Submitted as SLURM job: 44455702
==============================================================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% All execution tests passed! %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
This was referenced Aug 28, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
category: Bug Fix
Fixes a previously-reported bug
topic: Convection and Mixing
Related to cloud convection and PBL mixing
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Name and Institution (Required)
Name: Nick Balasus
Institution: Harvard University
Describe the update
As pointed out in #2409 by @ohsangik98, the methane simulation does not conserve mass. This is the result of the mass conservation adjustment in
vdiff_mod.F90
relying on a mass tendency (dqbot
) with units ofkg species/kg total air
that is then converted to mass usingkg dry air
instead ofkg total air
. This is the main fix here.Other minor changes:
kg/kg dry
tomol/mol dry
before PBL mixing (as this is just undone right after inVDIFFDR
). According to inline comments from @lizziel, the call toAIRQNT
should still work with these units.VDIFFAR
.pint
toPa
fromhPa
for the top edge as is done with the rest of the array.global_ch4_mod.F90
.Expected changes
Mass balance can be achieved for the methane simulation. I tested this with a year long simulation for methane.
In general, concentrations will be higher in wet places. This change will impact all species using the
VDIFF
PBL mixing scheme (GEOS-Chem default), not just methane.Reference(s)
Thanks to Jintai Lin and Chris Holmes (@cdholmes) for advice.
Related Github Issue
#2409