check if water is available from each source - set withdrawal and unmet outside the basin source compute flow from source object using recall object if the transfer demand > outside source use all the outside source only take what is needed - the transfer demand for other transfer types (ave_day, dtbls), only take the transfer amount - for out of basin reservoirs/storages if the transfer demand > outside source use all the outside source only take what is needed - the transfer demand water treatment plant source water use source (effluent) water tower storage check if there is enough storage and compute outflow divert flowing water from channel source amount that can be diverted without falling below low flow limit don't divert when flow is below the minimum - cha_min only divert what is available - flow above the minimum - cha_div canal source check if withdrawal takes storage below the minimum reservoir source check if withdrawal takes storage below the minimum aquifer source only have flow, no3, and minp(solp) for aquifer unlimited source add source withdrawal hyd to get total withdrawal hyd for the demand object subtract withdrawal from unmet
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | iwallo | |||
| integer, | intent(in) | :: | itrn | |||
| integer, | intent(in) | :: | isrc |