File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Model/GroundWaterEnergy Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments