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 applies N and P specified by date and
amount in the management file (.mgt)
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ SUBROUTINES/FUNCTIONS CALLED ~ ~ ~
SWAT: Erfc
~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
calculate c:n ratio for manure applications for SWAT-C
meta_fr is the fraction of fertilizer that is allocated to metabolic litter pool
add fertilizer to first and/or second layer
add mineral n and p for all methods
add total organic n and p for all methods
for stable carbon - add n and p to active humus pool
for C-FARM add to manure pool - assume C:N ratio = 10
for SWAT-C add to slow humus pool and fresh residue pools
add 1-rtof to slow humus pool
add rtof to fresh residue pools
add metabolic manure pool
add structural manure pool
add lignin manure pool
total residue pool is metabolic + structural
summary calculations