Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | dimension(:) | :: | icodes | ||
integer, | intent(in), | dimension(:) | :: | inum1s | ||
integer, | intent(in) | :: | mb | |||
integer, | intent(in) | :: | mhyd |
subroutine reservoir_routing(icodes, inum1s, mb, mhyd)
integer, dimension(:), intent(in) :: icodes
integer, dimension(:), intent(in) :: inum1s
integer, intent(in) :: mb
integer, intent(in) :: mhyd
! reading the routing structure in order to identify the hydrograph storage locations (ihout)
! that are inputs to the reservoir subbasins
integer :: i
do i = 1, mhyd
if (icodes(i) > 0) then
select case (icodes(i))
case (1) ! SUBBASIN command
! do nothing
case (2) ! ROUTE command
if (inum1s(i) <= mb ) then
if (rsvSubbasin(inum1s(i)) > 0 ) &
bRsvHydrograph(i) = .true.
end if
case (3) ! not implemented
! do nothing
case (4) ! not implemented
! do nothing
case (5) ! ADD command
!call indAdd(ihout, inum1, inum2)
case default ! do nothing
end select
end if
end do
end subroutine reservoir_routing