From e4e31c736eb9f49526f1fd7ec5a55d17e7747f53 Mon Sep 17 00:00:00 2001 From: sriharshakandala Date: Thu, 23 Nov 2023 14:03:42 -0800 Subject: [PATCH] Update RRTMGP compat to v0.10.0 Update array sizes for `random_lw`, `random_sw`, `cld_mask_lw`, and `cld_mask_sw` --- Project.toml | 2 +- src/parameterized_tendencies/radiation/RRTMGPInterface.jl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index ed60254d615..bf67e895813 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/parameterized_tendencies/radiation/RRTMGPInterface.jl b/src/parameterized_tendencies/radiation/RRTMGPInterface.jl index 2e2294feaa7..271e34dcfb1 100644 --- a/src/parameterized_tendencies/radiation/RRTMGPInterface.jl +++ b/src/parameterized_tendencies/radiation/RRTMGPInterface.jl @@ -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