Skip to content

Commit

Permalink
Update to BGC code to account for crop/grass height in snow burial ca…
Browse files Browse the repository at this point in the history
…lculation, fix for bug ESCOMP#516
  • Loading branch information
danicalombardozzi committed Oct 8, 2020
1 parent 66c4d49 commit 264f598
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/biogeochem/CNVegStructUpdateMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ subroutine CNVegStructUpdate(num_soilp, filter_soilp, &
nind => dgvs_inst%nind_patch , & ! Input: [real(r8) (:) ] number of individuals (#/m**2)
fpcgrid => dgvs_inst%fpcgrid_patch , & ! Input: [real(r8) (:) ] fractional area of patch (pft area/nat veg area)

snow_depth => waterdiagnosticbulk_inst%snow_depth_col , & ! Input: [real(r8) (:) ] snow height (m)
frac_sno => waterdiagnosticbulk_inst%frac_sno_col , & ! Input: [real(r8) (:) ] fraction of ground covered by snow (0 to 1)
snow_depth => waterdiagnosticbulk_inst%snow_depth_col , & ! Input: [real(r8) (:) ] snow height (m)

forc_hgt_u_patch => frictionvel_inst%forc_hgt_u_patch , & ! Input: [real(r8) (:) ] observational height of wind at patch-level [m]

Expand Down Expand Up @@ -292,8 +293,10 @@ subroutine CNVegStructUpdate(num_soilp, filter_soilp, &
!depth of snow required for complete burial of grasses
endif

elai(p) = max(tlai(p)*fb, 0.0_r8)
esai(p) = max(tsai(p)*fb, 0.0_r8)
!grass and crop snow burial changes with PFT height
!accounts for a 20% bending factor, as used in Lombardozzi et al. (2018) GRL 45(18), 9889-9897
elai(p) = max(tlai(p)*(1.0_r8 - frac_sno(c)) + tlai(p)*fb*frac_sno(c), 0.0_r8)
esai(p) = max(tsai(p)*(1.0_r8 - frac_sno(c)) + tsai(p)*fb*frac_sno(c), 0.0_r8)

! Fraction of vegetation free of snow
if ((elai(p) + esai(p)) > 0._r8) then
Expand Down

0 comments on commit 264f598

Please sign in to comment.