-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bug in vertical integrals? #1224
Comments
I think it's some ClimaCore magic? This is the commit that changed it from explicitly having dz there |
@trontrytel has found an earlier version where we did multiply by |
If this is not a bug, it is not great design to call an integral a sum. We should fix the notation. |
Great, thank you! I will add a comment tracking this just above in the TC code. Here is the definition used, https://github.com/CliMA/ClimaCore.jl/blob/main/src/Fields/mapreduce.jl#L24 |
The water paths are defined as the integrals of the corresponding specific humidity multiplied by density. They have units of [M][L]^{-2}.
It seems that the current implementation is an arithmetic sum of the grid-mean values in the column, which would mean that we are missing the product with respect to the local
dz
, and the result has units [M][L]^{-3}.If this is not a bug and there is some undecipherable hidden integral in these expressions, we should still change the current implementation to something more human-readable.
TurbulenceConvection.jl/driver/compute_diagnostics.jl
Lines 183 to 187 in 5a27c77
The text was updated successfully, but these errors were encountered: