Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(TSubbasin), | public, | dimension(:), allocatable, TARGET | :: | TSub | |||
type(TWaterUser), | public, | dimension(:), allocatable, TARGET | :: | TWU | |||
logical, | public, | save, dimension(:), allocatable | :: | bWAMHydrograph | |||
logical, | public, | save | :: | bWAM_Module | = | .false. | WATER TRANSFER VARIABLESswitch module on (TRUE) or off (FALSE). Read in readbas.f90 from *.bsn file logical, save :: wam_bTransfer defined in common.f90 |
character, | public | :: | management_input_file | = | 'management.csv' | ||
integer, | public | :: | management_input_file_id | = | 0 | ||
type(logger), | public, | save | :: | management_log | |||
character, | public | :: | management_users_input_dir | = | 'input/water_users' | ||
type(TwamSub), | public, | dimension(:), allocatable | :: | wamTSub | |||
character(len=path_max_length), | public, | save, dimension(:), allocatable | :: | wam_UName | |||
logical, | public, | save, dimension(:), allocatable | :: | wam_bTransReplace | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_d | m3 / s |
||
integer, | public, | save, dimension(:), allocatable | :: | wam_day_irr_end | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_day_irr_start | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_destination | |||
real(kind=dp), | public, | save, dimension(:), allocatable | :: | wam_eff | |||
real(kind=dp), | public, | save | :: | wam_eff_drip | = | 0.9 | |
real(kind=dp), | public, | save | :: | wam_eff_sprinkler | = | 0.65 | DATE ARRAYS for output onlyarray of current years and days of year |
integer, | public, | save, dimension(:), allocatable | :: | wam_firstyr | |||
real(kind=dp), | public, | save, dimension(:), allocatable | :: | wam_irr_deficit_fac | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_irr_opt | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_irr_practice | |||
real(kind=dp), | public, | save, dimension(:), allocatable | :: | wam_irrigationDemand_summary | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_lastyr | |||
integer, | public, | save | :: | wam_nWU | = | 0 | |
integer, | public, | save | :: | wam_nsub | IRRIGATION VARIABLESswitch module on (TRUE) or off (FALSE). Read in readbas.f90 from *.bsn file logical, save :: wam_bIrrigation ! defined in common.f90 |
||
integer, | public, | save, dimension(:), allocatable | :: | wam_opt | |||
real(kind=dp), | public, | save, dimension(:), allocatable | :: | wam_plantDemand_summary | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_source | |||
real(kind=dp), | public, | save, dimension(:), allocatable | :: | wam_supplied_summary | User-defined data types |
||
integer, | public, | save, dimension(:), allocatable | :: | wam_ts | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_w_source | |||
integer, | public, | save, dimension(:), allocatable | :: | wam_y | m3 / s |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=dp), | public, | dimension(:), pointer | :: | Q_act | |||
real(kind=dp), | public, | dimension(:), pointer | :: | Q_min | |||
real(kind=dp), | public, | dimension(:), pointer | :: | inflow | |||
real(kind=dp), | public, | dimension(:), pointer | :: | irrDemand | |||
integer, | public | :: | nWU | ||||
integer, | public | :: | nWUin | ||||
integer, | public | :: | nWUout | ||||
integer, | public, | dimension(:), pointer | :: | pos | |||
integer, | public | :: | pos_irr | ||||
integer, | public | :: | subnr | ||||
real(kind=dp), | public, | dimension(:), pointer | :: | totDemand | |||
real(kind=dp), | public, | dimension(:), pointer | :: | tr_losses_in | |||
real(kind=dp), | public, | dimension(:), pointer | :: | tr_losses_out | |||
real(kind=dp), | public, | dimension(:), pointer | :: | withdrawal |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=dp), | public | :: | area | ||||
real(kind=dp), | public, | dimension(:), pointer | :: | data | |||
integer, | public | :: | day_irr_end | ||||
integer, | public | :: | day_irr_start | ||||
integer, | public | :: | fyr | ||||
real(kind=dp), | public | :: | irr_deficit_fac | ||||
integer, | public | :: | irr_eff_fac | ||||
integer, | public | :: | irr_opt | ||||
integer, | public | :: | irr_practice | ||||
real(kind=dp), | public, | dimension(:), pointer | :: | irrigationDemand | |||
integer, | public | :: | lyr | ||||
character(len=path_max_length), | public | :: | name | ||||
real(kind=dp), | public, | dimension(:), pointer | :: | plantDemand | |||
integer, | public | :: | subd | ||||
integer, | public | :: | subs | ||||
real(kind=dp), | public, | dimension(:), pointer | :: | supplied | |||
real(kind=dp), | public | :: | tr_eff | ||||
real(kind=dp), | public, | dimension(:), pointer | :: | tr_losses | Following variables are required for water users of type irrigation only wu_opt = 4 |
||
integer, | public | :: | ts_ | ||||
integer, | public | :: | w_source | ||||
integer, | public | :: | wu_opt |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i | |||
character(len=n), | intent(in) | :: | ch | |||
character(len=*), | intent(in) | :: | ext | |||
integer, | intent(in) | :: | n |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | year | |||
integer, | intent(in) | :: | day | |||
type(TWaterUser), | POINTER | :: | pWU |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | sub |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | sub |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | id |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(TWaterUser), | POINTER | :: | pWU | |||
real(kind=dp), | intent(in) | :: | plantDemand |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nval | |||
real(kind=dp), | intent(inout), | dimension(nDaysSim + 1) | :: | dailyArray | ||
real(kind=dp), | intent(in), | dimension(nval) | :: | val | ||
integer, | intent(in) | :: | wu_id | |||
integer, | intent(in) | :: | iyr | |||
integer, | intent(in) | :: | nDaysSim | |||
integer, | intent(in) | :: | nbyr |
account for irrigation water users !! pWU%supplied should not be added to %inflow, because the irrigation supply is added in hydrotope !! %inflow is added to sda or varoute in "subbasin" and/or "add"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(TSubbasin), | POINTER | :: | pS | |||
real(kind=dp), | intent(in) | :: | withdrawal_act | |||
integer, | intent(in) | :: | daycounter | |||
integer, | intent(in) | :: | ida | |||
integer, | intent(in) | :: | iyr |
!! pWU%supplied should not be added to %inflow, because the irrigation supply is added in hydrotope !! %inflow is added to sda or varoute in "subbasin" and/or "add"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | sub | |||
integer, | intent(in) | :: | day | |||
integer, | intent(in) | :: | ida | |||
integer, | intent(in) | :: | iyr |
read transfer control file and allocate water transfer arrays, pointers, and user-defined data types
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | config_fid | |||
real(kind=dp), | intent(in), | dimension(:, :) | :: | frar | ||
integer, | intent(in), | dimension(:) | :: | icodes | ||
integer, | intent(in), | dimension(:) | :: | inum1s | ||
integer, | intent(in) | :: | iyr | |||
integer, | intent(in) | :: | mb | |||
integer, | intent(in) | :: | mhyd | |||
integer, | intent(in), | dimension(:, :, :) | :: | mstruc | ||
integer, | intent(in) | :: | nDaysSim | |||
integer, | intent(in) | :: | nbyr | |||
integer, | intent(in), | dimension(:) | :: | neap | ||
real(kind=dp), | intent(in), | dimension(:) | :: | sbar | ||
character(len=path_max_length), | intent(in) | :: | output_path |
Check, if the irrigated area, summarised for each subbasin from *.str file is
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in), | dimension(:, :) | :: | frar | ||
integer, | intent(in) | :: | mb | |||
integer, | intent(in), | dimension(:, :, :) | :: | mstruc | ||
integer, | intent(in) | :: | nDaysSim | |||
integer, | intent(in), | dimension(:) | :: | neap | ||
real(kind=dp), | intent(in), | dimension(:) | :: | sbar |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nval | |||
character(len=n) | :: | fname | ||||
integer, | intent(in) | :: | n | |||
integer, | intent(in) | :: | wu_id | |||
integer, | intent(in) | :: | iyr | |||
integer, | intent(in) | :: | nDaysSim | |||
integer, | intent(in) | :: | nbyr |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | iyr | |||
integer, | intent(in) | :: | nDaysSim | |||
integer, | intent(in) | :: | nbyr |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | dimension(:) | :: | icodes | ||
integer, | intent(in), | dimension(:) | :: | inum1s | ||
integer, | intent(in) | :: | mhyd |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | sub | |||
integer, | intent(in) | :: | day | |||
integer, | intent(in) | :: | ida | |||
integer, | intent(in) | :: | iyr |
!! pWU%supplied should not be added to %inflow, because the irrigation supply is added in hydrotope !! %inflow is added to sda or varoute in "subbasin" and/or "add"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | sub | |||
real(kind=dp), | intent(inout) | :: | surfaceR | |||
real(kind=dp), | intent(inout) | :: | subsurfaceR | |||
integer, | intent(in) | :: | day | |||
integer, | intent(in) | :: | ida | |||
integer, | intent(in) | :: | iyr |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | mb | |||
integer, | intent(in) | :: | nDaysSim |