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.
subroutine vegetation_nutrient_stress(u1,u2,uu)!**** PURPOSE: THIS FUNCTION CALCULATES THE NUTRIENT STRESS FACTOR uu! CAUSED BY LIMITED SUPPLY of N or P!**** CALLED IN: NUPTAKE, PUPTAKE!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~! PARAMETERS & VARIABLES!! u1 = N or P uptake in current day (SUPPLY), kg/ha! u2 = optimal uptake of N or P until current day (DEMAND), kg/ha! uu = nutrient stress factor!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~real(dp)u1,u2,uuuu=200.*(u1/(u2+.0001)-.5)if(uu.le.0.)thenuu=0.elseuu=uu/(uu+exp(3.535-.02597*uu))end if return end subroutine vegetation_nutrient_stress