Skip to content

Commit b30bbf9

Browse files
committed
fix issue related to idxbudfjf when only one transport stream reach is active
1 parent 86339ba commit b30bbf9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Model/GroundWaterEnergy/gwe-sfe.f90

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ subroutine find_sfe_package(this)
308308
do ip = 1, this%flowbudptr%nbudterm
309309
select case (trim(adjustl(this%flowbudptr%budterm(ip)%flowtype)))
310310
case ('FLOW-JA-FACE')
311-
this%idxbudfjf = ip
311+
if (this%flowbudptr%budterm(ip)%maxlist /= 0) then
312+
this%idxbudfjf = ip
313+
end if
312314
this%idxbudssm(ip) = 0
313315
case ('GWF')
314316
this%idxbudgwf = ip
@@ -537,7 +539,7 @@ function sfe_get_nbudterms(this) result(nbudterms)
537539
! 5. ext-outflow
538540
! 6. strmbed-cond
539541
! 7. sensible heat flux
540-
nbudterms = 6 ! ??? This should now be 7, but seems to only work with six ???
542+
nbudterms = 7
541543
end function sfe_get_nbudterms
542544

543545
!> @brief Set up the budget object that stores all the sfe flows

0 commit comments

Comments
 (0)