wallo_transfer.f90 Source File


This file depends on

sourcefile~~wallo_transfer.f90~~EfferentGraph sourcefile~wallo_transfer.f90 wallo_transfer.f90 sourcefile~aquifer_module.f90 aquifer_module.f90 sourcefile~wallo_transfer.f90->sourcefile~aquifer_module.f90 sourcefile~constituent_mass_module.f90 constituent_mass_module.f90 sourcefile~wallo_transfer.f90->sourcefile~constituent_mass_module.f90 sourcefile~hydrograph_module.f90 hydrograph_module.f90 sourcefile~wallo_transfer.f90->sourcefile~hydrograph_module.f90 sourcefile~reservoir_module.f90 reservoir_module.f90 sourcefile~wallo_transfer.f90->sourcefile~reservoir_module.f90 sourcefile~sd_channel_module.f90 sd_channel_module.f90 sourcefile~wallo_transfer.f90->sourcefile~sd_channel_module.f90 sourcefile~time_module.f90 time_module.f90 sourcefile~wallo_transfer.f90->sourcefile~time_module.f90 sourcefile~water_allocation_module.f90 water_allocation_module.f90 sourcefile~wallo_transfer.f90->sourcefile~water_allocation_module.f90 sourcefile~hydrograph_module.f90->sourcefile~time_module.f90 sourcefile~basin_module.f90 basin_module.f90 sourcefile~hydrograph_module.f90->sourcefile~basin_module.f90

Source Code

      subroutine wallo_transfer (ipou)
      
!!    ~ ~ ~ PURPOSE ~ ~ ~
!!    this subroutine transfers water from point of diversion to place of use
!!    by pipe or pump

      use water_allocation_module
      use hydrograph_module
      use constituent_mass_module
      use sd_channel_module
      use aquifer_module
      use reservoir_module
      use time_module
      
      implicit none 

      integer, intent (in):: ipou       !place of use (POU) number
      integer :: ipod = 0               !point of diversion (POD) number
      integer :: iconv = 0              !conveyance object number (pipe or pump number)

      !! transfer water to receiving object from each source
      do ipod = 1, pou(ipou)%pod(ipod)%num
        iconv = pou(ipou)%pod(ipod)%conv_num
        select case (pou(ipou)%pod(ipod)%conv_typ)
        case ("pipe")
          !! organic hydrograph being transfered from the source to the receiving object
          poud_om(ipou)%pod(ipod) = (1. - pipe(iconv)%loss_fr) * poud_om(ipou)%pod(ipod) 
          !! add to aquifers
        case ("pump")
          !! include pump losses here
        end select
      end do
      return
      end subroutine wallo_transfer