Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
~ ~ ~ PURPOSE ~ ~ ~
this subroutine starts the day for water allocation
sets the out of basin source (OSRC) availability, withdrawal for OSRC and canals,
and set water allocation duty (right) and fractions from each POD and to each POR
zero daily POD and POR organic-mineral
Outside Source Objects - POD Objects - typically measured flow or SWAT+ output
use use constant, decision table, or recall object for to set the om conc for outside source water
decision table - outside source concentrations vary with flow conditions, seasons, etc
actions return the organic mineral number for outside source concentrations
use recall object for outside source concentrations
allocate and deliver water at start of day
if the POU does not have any PODs (inflow is from a return) - just treat/use and return the water
compute outflow and concentrations
compute outflow and concentrations
return water to PORs
allocate and deliver water at start of day for water tower storage
allocate and deliver water at start of day for unlimited source PODs
zero water allocation objects and set reset POU finishes to no
set water allocation duty (right) and fractions from each POD and to each POR
zero water allocation objects and set reset POU finishes to "n"
need irrig(j) when irrigating for condition and setting POU demand in dtbl
irrig(j)%demand, applied, runoff (from decision table) for each hru
reset demand or duty for transfer object - convert from mm to m3
if no dtbl, use the maximum rate every day
if decision table, use to set demand
reset demand or duty for transfer object
set max rate for the day - convert to m3/s
compute POD (source) fractions if decision table is used for POD fractions
reset source fractions for transfer object
use input POD (source) fractions
compute source fractions if decision table is used for POR fractions
reset source fractions for transfer object
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.