| 6 | |
| 7 | |
| 8 | == modularisation of code used by nitrogen and phosphorus routines == |
| 9 | There are many aspects which the nutrient cycles have in common, for example root uptake kinetics, stoichiometric considerations, etc. To avoid the risks of introducing inconsistencies and redundant code, I started to write subroutines which are listed in the following. All subroutines are in stomate_phosphorus.f90. |
| 10 | |
| 11 | === 1. root_conductivity === |
| 12 | This subroutine calculates the uptake capacity of N & P per mass root according to the uptake kinetics of ammonia and nitrate used in OCN (Zaehle & Friend, 2010). |
| 13 | |
| 14 | |
| 15 | |
| 16 | === 2. f_XY_plant === |
| 17 | This subroutine calculates the scaling functions based on the stoichiometric ratio of labile plant tissue (reserve, labile and leaf) which are used to scale root uptake, biological N2 fixation, and biochemical mineralization. It currently supports scaling functions based on the P-to-N ratio, N-to-C ratio and P-to-C ratio. All other combinations will cause a 'STOP', but could be easily implemented if needed. |
| 18 | |