Skip to content

Commit fbea3d1

Browse files
authored
Merge pull request #1459 from CliMA/zs/hotfix
fix a bug in turbulent moisture flux for integrated land
2 parents fee7c3f + 5a424dc commit fbea3d1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

experiments/ClimaEarth/components/land/climaland_integrated.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,15 @@ function FluxCalculator.compute_surface_fluxes!(
612612
@. csf.F_sh += csf.temp2 * area_fraction
613613

614614
# Combine turbulent moisture fluxes from each component of the land model
615+
# Note that we multiply by ρ_liq to convert from m s-1 to kg m-2 s-1
616+
ρ_liq = (LP.ρ_cloud_liq(sim.model.soil.parameters.earth_param_set))
615617
Interfacer.remap!(
616618
csf.temp1,
617-
canopy_dest.transpiration .+
618-
(soil_dest.vapor_flux_liq .+ soil_dest.vapor_flux_ice) .* (1 .- p.snow.snow_cover_fraction) .+
619-
p.snow.snow_cover_fraction .* snow_dest.vapor_flux,
619+
(
620+
canopy_dest.transpiration .+
621+
(soil_dest.vapor_flux_liq .+ soil_dest.vapor_flux_ice) .* (1 .- p.snow.snow_cover_fraction) .+
622+
p.snow.snow_cover_fraction .* snow_dest.vapor_flux
623+
) .* ρ_liq,
620624
)
621625
@. csf.temp1 = ifelse(area_fraction == 0, zero(csf.temp1), csf.temp1)
622626
@. csf.F_turb_moisture += csf.temp1 * area_fraction

0 commit comments

Comments
 (0)