fertilizer_data_module.f90 Source File


Files dependent on this one

sourcefile~~fertilizer_data_module.f90~~AfferentGraph sourcefile~fertilizer_data_module.f90 fertilizer_data_module.f90 sourcefile~actions.f90 actions.f90 sourcefile~actions.f90->sourcefile~fertilizer_data_module.f90 sourcefile~manure_allocation_module.f90 manure_allocation_module.f90 sourcefile~actions.f90->sourcefile~manure_allocation_module.f90 sourcefile~cs_fert.f90 cs_fert.f90 sourcefile~cs_fert.f90->sourcefile~fertilizer_data_module.f90 sourcefile~cs_fert_wet.f90 cs_fert_wet.f90 sourcefile~cs_fert_wet.f90->sourcefile~fertilizer_data_module.f90 sourcefile~dtbl_lum_read.f90 dtbl_lum_read.f90 sourcefile~dtbl_lum_read.f90->sourcefile~fertilizer_data_module.f90 sourcefile~dtbl_res_read.f90 dtbl_res_read.f90 sourcefile~dtbl_res_read.f90->sourcefile~fertilizer_data_module.f90 sourcefile~dtbl_scen_read.f90 dtbl_scen_read.f90 sourcefile~dtbl_scen_read.f90->sourcefile~fertilizer_data_module.f90 sourcefile~fert_parm_read.f90 fert_parm_read.f90 sourcefile~fert_parm_read.f90->sourcefile~fertilizer_data_module.f90 sourcefile~hru_dtbl_actions_init.f90 hru_dtbl_actions_init.f90 sourcefile~hru_dtbl_actions_init.f90->sourcefile~fertilizer_data_module.f90 sourcefile~manure_allocation_module.f90->sourcefile~fertilizer_data_module.f90 sourcefile~manure_db_read.f90 manure_db_read.f90 sourcefile~manure_db_read.f90->sourcefile~fertilizer_data_module.f90 sourcefile~manure_orgmin_read.f90 manure_orgmin_read.f90 sourcefile~manure_orgmin_read.f90->sourcefile~fertilizer_data_module.f90 sourcefile~manure_parm_read.f90 manure_parm_read.f90 sourcefile~manure_parm_read.f90->sourcefile~fertilizer_data_module.f90 sourcefile~mgt_read_grazeops.f90 mgt_read_grazeops.f90 sourcefile~mgt_read_grazeops.f90->sourcefile~fertilizer_data_module.f90 sourcefile~pl_fert.f90 pl_fert.f90 sourcefile~pl_fert.f90->sourcefile~fertilizer_data_module.f90 sourcefile~pl_fert_wet.f90 pl_fert_wet.f90 sourcefile~pl_fert_wet.f90->sourcefile~fertilizer_data_module.f90 sourcefile~pl_manure.f90 pl_manure.f90 sourcefile~pl_manure.f90->sourcefile~fertilizer_data_module.f90 sourcefile~read_mgtops.f90 read_mgtops.f90 sourcefile~read_mgtops.f90->sourcefile~fertilizer_data_module.f90 sourcefile~salt_fert.f90 salt_fert.f90 sourcefile~salt_fert.f90->sourcefile~fertilizer_data_module.f90 sourcefile~salt_fert_wet.f90 salt_fert_wet.f90 sourcefile~salt_fert_wet.f90->sourcefile~fertilizer_data_module.f90 sourcefile~mallo_control.f90 mallo_control.f90 sourcefile~mallo_control.f90->sourcefile~manure_allocation_module.f90 sourcefile~manure_allocation_read.f90 manure_allocation_read.f90 sourcefile~manure_allocation_read.f90->sourcefile~manure_allocation_module.f90 sourcefile~manure_demand_output.f90 manure_demand_output.f90 sourcefile~manure_demand_output.f90->sourcefile~manure_allocation_module.f90 sourcefile~manure_source_output.f90 manure_source_output.f90 sourcefile~manure_source_output.f90->sourcefile~manure_allocation_module.f90

Source Code

      module fertilizer_data_module
     
      implicit none
          
      type fertilizer_db
        character(len=16) :: fertnm = " "
        real :: fminn = 0.            !! kg minN/kg frt     |fract of fert which is mineral nit (NO3+NH3)
        real :: fminp = 0.            !! kg minN/kg frt     |frac of fert which is mineral phos
        real :: forgn = 0.            !! kg orgN/kg frt     |frac of fert which is org n
        real :: forgp = 0.            !! kg orgP/kg frt     |frac of fert which is org p
        real :: fnh3n = 0.            !! kg NH3-N/kg N      |frac of mineral N content of fert which is NH3
      end type fertilizer_db
      type (fertilizer_db), dimension(:),allocatable, save :: fertdb
      
      !! manure database - name and characteristics of different manure types
      type manure_database
        character (len=25) :: name = ""         !name of manure type
        character (len=25) :: org_min = ""      !sediment, carbon, and nutrients
        character (len=25) :: pests = ""        !pesticides - ppm
        character (len=25) :: paths = ""        !pathogens - cfu
        character (len=25) :: hmets = ""        !heavy metals - ppm
        character (len=25) :: salts = ""        !salt ions - ppm
        character (len=25) :: constit = ""      !other constituents - ppm
        character (len=80) :: descrip = ""      !description
        integer :: iorg_min = 0                 !sediment, carbon, and nutrients - pointer to
        integer :: ipests = 0                   !pesticides - pointer to
        integer :: ipaths = 0                   !pathogens - pointer to
        integer :: imets = 0                    !heavy metals - pointer to
        integer :: isalts = 0                   !salt ions - pointer to
        integer :: iconstit = 0                 !other constituents - pointer to
      end type manure_database        
      type (manure_database), dimension(:), allocatable :: manure_db
      
      !! manure organic matter attributes database - used to allocate manure applications to soil carbon and nitrogen pools
      type manure_attributes
        character(len=64) ::  name = " "  !! Identifier used to crosswalk fertilizer entries, constructed from
                                          !! manure_region, manure_source, and manure_type
        real :: frac_water = 0.       !! kg water/(kg manure + kg_water) |frac of manure which is water
        real :: fcbn = 0.0            !! kg C/kg frt        |frac of fert which is carbon
        real :: fminn = 0.            !! kg minN/kg frt     |frac of fert which is mineral nitrogen (NO3+NH3)
        real :: fminp = 0.            !! kg minN/kg frt     |frac of fert which is mineral phoshorus
        real :: forgn = 0.            !! kg orgN/kg frt     |frac of fert which is org N
        real :: forgp = 0.            !! kg orgP/kg frt     |frac of fert which is org P
        real :: fnh3n = 0.            !! kg NH3-N/kg N      |frac of mineral N content of fert which is NH3
        character(len=64) :: description = " "      !!  na  |description of manure type
      end type  manure_attributes
      type (manure_attributes), dimension(:),allocatable :: manure_om
      
      end module fertilizer_data_module