structure_init.f90 Source File


This file depends on

sourcefile~~structure_init.f90~~EfferentGraph sourcefile~structure_init.f90 structure_init.f90 sourcefile~hru_module.f90 hru_module.f90 sourcefile~structure_init.f90->sourcefile~hru_module.f90 sourcefile~hydrograph_module.f90 hydrograph_module.f90 sourcefile~structure_init.f90->sourcefile~hydrograph_module.f90 sourcefile~landuse_data_module.f90 landuse_data_module.f90 sourcefile~structure_init.f90->sourcefile~landuse_data_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 structure_init

      use hydrograph_module, only : sp_ob
      use hru_module, only : hru
      use landuse_data_module
      
      implicit none
      
      integer :: j = 0               !none       |counter
      integer :: ilum = 0            !none       |counter 
      
      do j = 1, sp_ob%hru
        ilum = hru(j)%land_use_mgt
           
        !! set parameters for structural land use/managment
        if (lum(ilum)%tiledrain /= "null") then
          call structure_set_parms("tiledrain       ", lum_str(ilum)%tiledrain, j)
        end if
      
        if (lum(ilum)%fstrip /= "null") then
          call structure_set_parms("fstrip          ", lum_str(ilum)%fstrip, j)
        end if
        
        if (lum(ilum)%grassww /= "null") then
          call structure_set_parms("grassww         ", lum_str(ilum)%grassww, j)
        end if

        if (lum(ilum)%bmpuser /= "null") then
          call structure_set_parms("user_def         ", lum_str(ilum)%bmpuser, j)
        end if
        
      end do

    return
    end subroutine structure_init