res_objects.f90 Source File


This file depends on

sourcefile~~res_objects.f90~~EfferentGraph sourcefile~res_objects.f90 res_objects.f90 sourcefile~hydrograph_module.f90 hydrograph_module.f90 sourcefile~res_objects.f90->sourcefile~hydrograph_module.f90 sourcefile~reservoir_module.f90 reservoir_module.f90 sourcefile~res_objects.f90->sourcefile~reservoir_module.f90 sourcefile~basin_module.f90 basin_module.f90 sourcefile~hydrograph_module.f90->sourcefile~basin_module.f90 sourcefile~time_module.f90 time_module.f90 sourcefile~hydrograph_module.f90->sourcefile~time_module.f90

Source Code

      subroutine res_objects

      use reservoir_module
      use hydrograph_module
      
      implicit none 
      
      integer :: iob1 = 0        !none         |beginning of loop
      integer :: iob2 = 0        !none         |ending of loop
      integer :: ires = 0        !none         |counter
      integer :: i = 0           !none         |counter

      !! set reservoir object numbers for reservoir objects
      iob1 = sp_ob1%res
      iob2 = sp_ob1%res + sp_ob%res - 1
      ires = 0
      do i = iob1, iob2
        ires = ires + 1
        res_ob(ires)%ob = i
        res_ob(ires)%props = ob(i)%props
      end do

      return
      end subroutine res_objects