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.
generate precip for the first day - %precip_next
!!! uncomment next three lines for RELEASE version only (Srin/Karim)
determine beginning and ending dates of simulation in current year
set beginning day of simulation for year
set ending day of simulation for year
sum years of printing for average annual writes
tell user they are skipping more years than simulating
set initial soil water for hru, basin and lsu - for checking water balance
won't reset again
begin daily loop
determine month and day of month - time%mo and time%day_mo
Uncomment next three lines for DEBUG version only
check for end of month, year and simulation
check time interval for daily printing
initialize variables at beginning of day for hru's
read in/generate weather
set array counter for atmospheric deposition
conditional reset of land use and management
all hru fractions are set at once
have to check every hru for land use change
allocate water for water rights objects
if a channel is not an object, call at beginning of day
allocate manure to appropriate demand objects
command loop
end daily loop
perform end-of-year processes
write annual basin crop yields and harvested areas
zero yearly balances after using them in soft data calibration (was in hru_lte_output)
zero yearly balances after using them in soft data calibration (was in sd_channel_output)
zero yearly balances after using them in soft data calibration (was in hru_output)
zero yearly pesticide balances after using them in soft data calibration (was in hru_output)
compute biological mixing at the end of every year
update sequence number for year in rotation to that of
the next year and reset sequence numbers for operations
update simulation year
end annual loop
write channel morphology - downcutting and widening
ave annual calibration output and reset time for next simulation
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.