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

Wrapper for #812 #819

Merged
merged 3 commits into from
Jan 5, 2022
Merged

Wrapper for #812 #819

merged 3 commits into from
Jan 5, 2022

Conversation

grantfirl
Copy link
Collaborator

@grantfirl grantfirl commented Dec 22, 2021

ALL CREDIT TO @rmontuoro FOR THIS PR. THIS WRAPPER IS ONLY TO UPDATE TO LATEST MAIN FOR TESTING/MERGING PURPOSES. All description below is from #812:

This PR implements a vertically-integrated formula to compute tracer column mass and ensure mass conservation for all tracers except TKE. The formula properly computes the tracer mass at each layer dm(z) taking into account that the air density rho(z) changes with altitude (z):

dm(z) = rho(z) q(z) dz

where q(z) is the tracer mixing ratio.

This PR will change the baseline for all regression tests using Scale-Aware Mass-Flux (SAMF) shallow or deep convective schemes, as well as the Scale-aware TKE-based Moist Eddy-Diffusivity Mass-Flux (SATMEDMF) PBL scheme.

Resolves issue #811

Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand the code changes, they do what the description says: Take into account that air density changes with altitude. One could consider defining a variable 1/grav to avoid the repeated divisions? (But maybe the compiler does that automatically.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants