-
Notifications
You must be signed in to change notification settings - Fork 78
Shear used in EDMF sources from precomputed args becomes negative #2149
Comments
adding this print in edmf_kernels.jl line 1171 - in "flux(::en_ρatke, ::Diffusion, atmos, args)" Shear² in flux(en_ρatke) = -0.12189892688029821 |
I can confirm that this is indeed strange. |
It makes sense that this is happening after the gradient interface contribution is added. I am not sure that it is worth investigating any further. This computation needs to happen after the full gradient is available inside |
Thanks @mwarusz we will work towards it (tore velocity gradients and then compute the squared shear from them). |
This is mentioned in ClimateMachine.jl/src/BalanceLaws/interface.jl Lines 205 to 206 in bb51cbb
but I sort of wonder if renaming this function to something like linear_gradient_transform would help prevent this kind of issues.
|
Description
See draft PR #2148 to reproduce this behavior. An erroneous behavior is encountered when drawing the squared shear from the precomputed arguments in the computation of sources. It is observed that the shear is negative when unpacked, but not when computed.
The ekman_layer.jl simulation in this case has the following characteristics:
The text was updated successfully, but these errors were encountered: