Skip to content

Commit

Permalink
Add r_eff overwirte based on ClimaParams
Browse files Browse the repository at this point in the history
  • Loading branch information
trontrytel committed Feb 11, 2025
1 parent 2d9b6e3 commit 4bc4711
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CloudMicrophysics"
uuid = "6a9e3e04-43cd-43ba-94b9-e8782df3c71b"
authors = ["Climate Modeling Alliance"]
version = "0.22.7"
version = "0.22.8"

[deps]
ClimaParams = "5c42b081-d73a-476f-9059-fd94b934656c"
Expand All @@ -22,7 +22,7 @@ MLJ = "add582a8-e3ab-11e8-2d5e-e98b27df1bc7"
EmulatorModelsExt = ["DataFrames", "MLJ"]

[compat]
ClimaParams = "0.10"
ClimaParams = "0.10.19"
DataFrames = "1.6"
DocStringExtensions = "0.8, 0.9"
ForwardDiff = "0.10"
Expand Down
4 changes: 2 additions & 2 deletions src/CloudDiagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ end
Returns a constant assumed effective radius for clouds
"""
function effective_radius_const(cloud_params::CMP.CloudLiquid{FT}) where {FT}
return FT(14e-6) # TODO grab it from parameters
return cloud_params.r_eff
end
function effective_radius_const(cloud_params::CMP.CloudIce{FT}) where {FT}
return FT(25e-6)
return cloud_params.r_eff
end

end # end module
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Thermodynamics = "b60c26fb-14c3-4610-9d3e-2d17fe7ff00c"

[compat]
ClimaParams = "0.10.19"
KernelAbstractions = "0.9"
MLJFlux = "0.4"
Optim = "<1.9.3"

0 comments on commit 4bc4711

Please sign in to comment.