Skip to content

Commit

Permalink
use cloud fraction 0 or 1
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Sep 16, 2023
1 parent eb81fc3 commit 046dac9
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 046dac9

Please sign in to comment.