Skip to content

Commit

Permalink
Resolve issue ESCOMP#2366 and PR ESCOMP#2355
Browse files Browse the repository at this point in the history
  • Loading branch information
slevis-lmwg committed Feb 15, 2024
1 parent c030c23 commit 7401dd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/biogeophys/CanopyFluxesMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,8 @@ subroutine CanopyFluxes(bounds, num_exposedvegp, filter_exposedvegp,
if (t_veg(p) > tfrz ) then ! above freezing, update accumulation in liqcan
if ((qflx_evap_veg(p)-qflx_tran_veg(p))*dtime > liqcan(p)) then ! all liq evap
! In this case, all liqcan will evap. Take remainder from snocan
snocan(p)=snocan(p)+liqcan(p)+(qflx_tran_veg(p)-qflx_evap_veg(p))*dtime
snocan(p) = max(0._r8, &
snocan(p) + liqcan(p) + (qflx_tran_veg(p) - qflx_evap_veg(p)) * dtime)
end if
liqcan(p) = max(0._r8,liqcan(p)+(qflx_tran_veg(p)-qflx_evap_veg(p))*dtime)

Expand Down
4 changes: 2 additions & 2 deletions src/biogeophys/TemperatureType.F90
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ subroutine InitCold(this, bounds, &
end if
else
if (col%itype(c) == icol_road_perv .or. col%itype(c) == icol_road_imperv) then
this%t_soisno_col(c,1:nlevgrnd) = 272._r8
this%t_soisno_col(c,1:nlevgrnd) = 274._r8
else if (col%itype(c) == icol_sunwall .or. col%itype(c) == icol_shadewall &
.or. col%itype(c) == icol_roof) then
! Set sunwall, shadewall, roof to fairly high temperature to avoid initialization
Expand All @@ -741,7 +741,7 @@ subroutine InitCold(this, bounds, &
end if
end if
else
this%t_soisno_col(c,1:nlevgrnd) = 274._r8
this%t_soisno_col(c,1:nlevgrnd) = 272._r8
if (use_excess_ice .and. (lun%itype(l) == istsoil .or. lun%itype(l) == istcrop)) then
this%t_soisno_col(c,1:nlevgrnd) = SHR_CONST_TKFRZ - 5.0_r8 !needs to be below freezing to properly initiate excess ice
end if
Expand Down

0 comments on commit 7401dd9

Please sign in to comment.