Skip to content

Commit

Permalink
Update RRTMGP compat to v0.10.0
Browse files Browse the repository at this point in the history
Update array sizes for `random_lw`, `random_sw`, `cld_mask_lw`, and `cld_mask_sw`
  • Loading branch information
sriharshakandala committed Nov 23, 2023
1 parent 4a55565 commit e4e31c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ NCDatasets = "0.11, 0.12, 0.13"
NVTX = "0.3"
Pkg = "1.8"
Printf = "1"
RRTMGP = "0.9.3"
RRTMGP = "0.10.0"
Random = "1"
RootSolvers = "0.2, 0.3, 0.4"
SciMLBase = "1, 2"
Expand Down
8 changes: 4 additions & 4 deletions src/parameterized_tendencies/radiation/RRTMGPInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -839,10 +839,10 @@ function RRTMGPModel(
set_and_save!(cld_path_ice, name, t..., dict)
cld_frac = DA{FT}(undef, nlay, ncol)
set_and_save!(cld_frac, "center_cloud_fraction", t..., dict)
random_lw = DA{FT}(undef, ngpt_lw, nlay, ncol)
random_sw = DA{FT}(undef, ngpt_sw, nlay, ncol)
cld_mask_lw = DA{Bool}(undef, ngpt_lw, nlay, ncol)
cld_mask_sw = DA{Bool}(undef, ngpt_sw, nlay, ncol)
random_lw = DA{FT}(undef, nlay, ncol)
random_sw = DA{FT}(undef, nlay, ncol)
cld_mask_lw = DA{Bool}(undef, nlay, ncol)
cld_mask_sw = DA{Bool}(undef, nlay, ncol)
cld_overlap = RRTMGP.AtmosphericStates.MaxRandomOverlap()

# ice_roughness is a constant, so don't use set_and_save! to get it
Expand Down

0 comments on commit e4e31c7

Please sign in to comment.