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.
! nbs added 7-20-23
BUG FIX: needed for per-pesticide kd
set ht1 to incoming daily hydrograph
set constituents to incoming loads (rtb salt; rtb cs)
zero outgoing flow and sediment - ht2
set outgoing flow and sediment - ht2
zero daily in/out morphology and sediment budget output
*wallo return here* -- add water transfer
add organic mineral
add constituents to incoming loads (rtb salt; rtb cs)
adjust precip and temperature for elevation using lapse rates
if connected to aquifer - add flow
add aquifer flow to inflow
set inflow hyds for printing
zero outgoing flow and sediment - ht2
compute flood plain deposition and channel erosion
call Muskingum and variable storage coefficient flood routing method
salt and constituent concentrations (g/m3) for inflow water
don't route constituents if flow is zero
compute max flow depth and corresponding travel time during day
compute channel water quality
new nutrient channel transformations - overrides qual2e
route constituents
call mike winchell's new routine for pesticide routing
total outgoing to output to SWIFT
route pathogens
Variable Storage Coefficient method - sc=2dt/(2ttime+dt) - ttime=(in2+out1)/2
travel time > timestep -- then all incoming is stored and frac of stored is routed
travel time < timestep -- route all stored and frac of incoming
if channel is a POD, allocate water for users and adjust flow in channel accordingly
set outflow hyd to ht2 after diverting water
calculate stream temperature (component mixing model)
set constituents for routing
output channel organic-mineral
channel sediment budget for output
channel nutrient budget for output
output channel morphology
output flow to channel morphology
set pesticide output variables
BUG FIX: recompute frsol/frsrb per pesticide (see sd_channel_control.f90)
set values for recharge hydrograph - should be trans losses
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.