-
Notifications
You must be signed in to change notification settings - Fork 33
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
large-scale condensation at <100% #609
Conversation
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.
Yep, fantastic!
The tests are running now, would also want to write some additional ones simply testing what you tried with |
@testset "Large-scale condensation" begin
spectral_grid = SpectralGrid(trunc=31, nlayers=8)
@testset for r in (0.8, 0.9, 1.0)
large_scale_condensation = ImplicitCondensation(spectral_grid, relative_humidity_threshold=r)
model = PrimitiveWetModel(spectral_grid; large_scale_condensation)
simulation = initialize!(model)
run!(simulation, period=Day(5))
precip = simulation.diagnostic_variables.physics.precip_large_scale
for ij in eachindex(precip)
@test precip[ij] >= 0 # precipitation should always be non-negative
end
end
end I would create a new file in |
The problem is that large-scale condensation at <100% currently gives negative precipitation as the
ImplicitCondensation
isn't correctly generalised for other thresholds than 1=100%from #614