Skip to content

Wrapper for #812#819

Merged
SamuelTrahanNOAA merged 3 commits into
NCAR:mainfrom
grantfirl:bugfix/tvd_gjf
Jan 5, 2022
Merged

Wrapper for #812#819
SamuelTrahanNOAA merged 3 commits into
NCAR:mainfrom
grantfirl:bugfix/tvd_gjf

Conversation

@grantfirl
Copy link
Copy Markdown
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
Copy Markdown
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.

4 participants