Skip to content

Commit a33f75f

Browse files
committed
Add min_lai parameter
1 parent bb86640 commit a33f75f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/biogeophys/CanopyFluxesMod.F90

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ subroutine CanopyFluxes(bounds, num_exposedvegp, filter_exposedvegp,
437437
real(r8), parameter :: k_cyl_area = 1.0_r8 !departure from cylindrical area
438438
real(r8), parameter :: k_internal = 0.0_r8 !self-absorbtion of leaf/stem longwave
439439
real(r8), parameter :: min_stem_diameter = 0.05_r8 !minimum stem diameter for which to calculate stem interactions
440+
real(r8), parameter :: min_lai = 0.1_r8 !minimum elai threshold to add esai to sa_leaf calculation
441+
!value is arbitrary but has been effective in avoiding RRTMGP errors in CESM3 development simulations
440442

441443
integer :: dummy_to_make_pgi_happy
442444
!------------------------------------------------------------------------------
@@ -762,9 +764,9 @@ subroutine CanopyFluxes(bounds, num_exposedvegp, filter_exposedvegp,
762764
! component in particular, which returns an error and stops the model
763765
! if the surface temperature is greater than 355K).
764766
! See https://github.com/ESCOMP/CTSM/issues/3589 for more info.
765-
! The 0.1_r8 value is fairly arbitrary but has been effective in
767+
! The 0.1_r8 value is arbitrary but has been effective in
766768
! avoiding RRTMGP errors in CESM3 development simulations.
767-
if(elai(p) < 0.1_r8) then
769+
if(elai(p) < min_lai) then
768770
sa_leaf(p) = sa_leaf(p) + esai(p)
769771
endif
770772
endif

0 commit comments

Comments
 (0)