From 9e8c19bfa4b747e18f9becf4dfd6d555a10672e2 Mon Sep 17 00:00:00 2001 From: Zhaoyi Shen <11598433+szy21@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:35:00 -0700 Subject: [PATCH] update boundary layer rh for radiation --- src/parameterized_tendencies/radiation/RRTMGPInterface.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parameterized_tendencies/radiation/RRTMGPInterface.jl b/src/parameterized_tendencies/radiation/RRTMGPInterface.jl index c257fc01da..e2cc4c7e2f 100644 --- a/src/parameterized_tendencies/radiation/RRTMGPInterface.jl +++ b/src/parameterized_tendencies/radiation/RRTMGPInterface.jl @@ -1086,6 +1086,10 @@ function update_boundary_layer!(model) @views as.p_lev[end, :] .= p_min @views AS.getview_t_lay(model.as)[end, :] .= as.t_lev[end - 1, :] @views as.t_lev[end, :] .= as.t_lev[end - 1, :] + if !(model.radiation_mode isa GrayRadiation) + @views AS.getview_rel_hum(model.as)[end, :] .= + AS.getview_rel_hum(model.as)[end - 1, :] + end update_boundary_layer_vmr!(model.radiation_mode, as) update_boundary_layer_cloud!(model.radiation_mode, as) update_boundary_layer_aerosol!(model.radiation_mode, as)