Skip to content

Commit

Permalink
set c_dst
Browse files Browse the repository at this point in the history
  • Loading branch information
swensosc committed Nov 28, 2023
1 parent 5491aae commit dbf6845
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/biogeophys/SoilHydrologyMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2297,13 +2297,16 @@ subroutine SubsurfaceLateralFlow(bounds, &
! should a warning be used instead?
head_gradient = min(max(head_gradient,-2._r8),2._r8)

! Calculate transmissivity of source column
! Determine source and destination columns
if (head_gradient >= 0._r8) then
c_src = c
c_dst = col%cold(c)
else
c_src = col%cold(c)
c_dst = c
endif


! Calculate transmissivity of source column
transmis = 0._r8
if(c_src /= ispval) then
! transmissivity non-zero only when saturated conditions exist
Expand Down

0 comments on commit dbf6845

Please sign in to comment.