Skip to content

Commit 8756940

Browse files
dispatch based on microphysics model choice, update NEWS.md
Co-authored-by: Anna Jaruga <[email protected]>
1 parent b266046 commit 8756940

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

NEWS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ ClimaAtmos.jl Release Notes
44
main
55
-------
66

7+
### Add RWP diagnostic
8+
PR [#3946](https://github.com/CliMA/ClimaAtmos.jl/pull/3946) adds rainwater path diagnostic variable.
9+
710
v0.31.1
811
-------
912

10-
PR [#3917](https://github.com/CliMA/ClimaAtmos.jl/pull/3917) adds common numercis configs for different resolutions.
13+
PR [#3917](https://github.com/CliMA/ClimaAtmos.jl/pull/3917) adds common numerics configs for different resolutions.
1114
These configurations are intended to serve as the default settings. Please modify them only if you are certain of the implications.
1215

1316
v0.31.0

src/diagnostics/core_diagnostics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ add_diagnostic_variable!(
15081508
# Rain water path (2d)
15091509
###
15101510
compute_rwp!(out, state, cache, time) =
1511-
compute_rwp!(out, state, cache, time, cache.atmos.moisture_model)
1511+
compute_rwp!(out, state, cache, time, cache.atmos.microphysics_model)
15121512
compute_rwp!(_, _, _, _, model::T) where {T} =
15131513
error_diagnostic_variable("rwp", model)
15141514

@@ -1518,7 +1518,7 @@ function compute_rwp!(
15181518
cache,
15191519
time,
15201520
moisture_model::T,
1521-
) where {T <: Union{EquilMoistModel, NonEquilMoistModel}}
1521+
) where {T <: Union{Microphysics1Moment, Microphysics2Moment}}
15221522
if isnothing(out)
15231523
out = zeros(axes(Fields.level(state.f, half)))
15241524
rw = cache.scratch.ᶜtemp_scalar

0 commit comments

Comments
 (0)