! nbs added 7-20-23
set ht1 to incoming daily hydrograph
zero outgoing flow and sediment - ht2
zero daily in/out morphology and sediment budget output
add water transfer
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
set constituents (rtb salt) to incoming loads
zero outgoing flow and sediment - ht2
compute flood plain deposition and channel erosion
call Muskingum and variable storage coefficient flood routing method
route pesticides
route pathogens
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
total outgoing to output to SWIFT
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
allocate water for transfers that don't include a channel as a source
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
set values for recharge hydrograph - should be trans losses