Skip to content

Commit

Permalink
Fix no-precipitation plotting issue, update to latest CloudMicrophysics
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailmints committed Jul 3, 2023
1 parent ef945eb commit e12e684
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
[compat]
ClimaCore = "0.10"
ClimaCorePlots = "0.2"
CloudMicrophysics = "0.11.1"
DiffEqBase = "6.75"
Distributions = "0.25"
EnsembleKalmanProcesses = "0.13"
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
CLIMAParameters = "0.7"
ClimaCore = "0.10"
ClimaCorePlots = "0.2"
CloudMicrophysics = "0.11.1"
DiffEqBase = "6.75"
NCDatasets = "0.12"
Plots = "1.29"
Expand Down
2 changes: 1 addition & 1 deletion test/plotting_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function plot_animation(z_centers, solver, aux, moisture, precip, KiD; output =
q_liq = q_tot .* 0.0
end

if !(precip isa KiD.Precipitation0M)
if !(precip isa Union{KiD.NoPrecipitation, KiD.Precipitation0M})
q_rai = parent(u.ρq_rai) ./ ρ .* 1e3
else
q_rai = q_tot .* 0.0
Expand Down

0 comments on commit e12e684

Please sign in to comment.