Skip to content

Commit

Permalink
Merge #2096
Browse files Browse the repository at this point in the history
2096: use cloud fraction 0 or 1 in radiation r=szy21 a=szy21



Co-authored-by: Zhaoyi Shen <11598433+szy21@users.noreply.github.com>
  • Loading branch information
bors[bot] and szy21 authored Sep 16, 2023
2 parents eb81fc3 + 046dac9 commit c50cf9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/callbacks/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ function rrtmgp_model_callback!(integrator)
1000 * Y.c.ρ * TD.liquid_specific_humidity(thermo_params, ᶜts) * ᶜΔz
@. ᶜiwp =
1000 * Y.c.ρ * TD.ice_specific_humidity(thermo_params, ᶜts) * ᶜΔz
@. ᶜfrac =
get_cloud_fraction(thermo_params, env_thermo_quad, FT(ᶜp), ᶜts)
@. ᶜfrac = ifelse(TD.has_condensate(thermo_params, ᶜts), 1, 0 * ᶜΔz)
end

RRTMGPI.update_fluxes!(radiation_model)
Expand Down

0 comments on commit c50cf9e

Please sign in to comment.