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 initializes the random number seeds. If the user
desires a different set of random numbers for each simulation run,
the random number generator is used to reset the values of the
seeds.
~ ~ ~ INCOMING VARIABLES ~ ~ ~
name |units |definition
~ ~ ~ OUTGOING VARIABLES ~ ~ ~
name |units |definition
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
idg(:) |none |array location of random number seed used
|for a given process
rndseed(:,:)|none |random number seeds. The seeds in the array
|are used to generate random numbers for the
|following purposes
|(1) wet/dry day probability
|(2) solar radiation
|(3) precipitation
|(4) USLE rainfall erosion index
|(5) wind speed
|(6) 0.5 hr rainfall fraction
|(7) relative humidity
|(8) maximum temperature
|(9) minimum temperature
|(10) generate new random numbers
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ SUBROUTINES/FUNCTIONS CALLED ~ ~ ~
SWAT: Aunif
~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
initialize random number seeds
assign new random number seeds
shuffle random number for conditional probability
assign random number for decision table conditional
shuffle seeds randomly (Bratley, Fox, Schrage, p34)
assign half-hour maximum rainfall seed to second array location for use
in sub-daily pcp generator
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.