6#ifndef M1D_MOD_PHYSIOLOGY_MYCOFON_H
7#define M1D_MOD_PHYSIOLOGY_MYCOFON_H
11#include "physiologymodule.h"
17class PhysiologyMYCOFON :
public PhysiologyModule {
20 PhysiologyMYCOFON(ModelCore & modelCore,
unsigned int timeInterval) : PhysiologyModule(modelCore,timeInterval),
21 modelCore_(modelCore),
22 time_(modelCore.getLandscape().getTime()),
23 si_(modelCore.getInput().getSite()),
24 sppar_(modelCore.getInput().getParameter().getSpeciesPar()),
25 sipar_(modelCore.getInput().getParameter().getSitePar()),
26 ac_(modelCore.getSubstates().getAc()),
27 mc_(modelCore.getSubstates().getMc()),
28 sc_(modelCore.getSubstates().getSc()),
29 wc_(modelCore.getSubstates().getWc()),
30 ph_(const_cast<Physiology &>(modelCore.getSubstates().getPh())),
31 vs_(modelCore.getSubstates().getVs())
34 this->setName(
"PhysiologyMYCOFON");
37 ~PhysiologyMYCOFON() {
52 ModelCore & modelCore_;
58 AirChemistry
const & ac_;
59 MicroClimate
const & mc_;
60 SoilChemistry
const & sc_;
61 WaterCycle
const & wc_;
63 VegStructure
const & vs_;
67 static const double CCDMmyc;
68 static const double NCFUNGOPT;
69 static const double MYC_M;
70 static const double NTORmyc;
71 static const double PAMMmyc;
72 static const double PNITmyc;
73 static const double PORGmyc;
74 static const double FYIELDmyc;
75 static const double KM20myc;
76 static const double CSUBmyc;
77 static const double TMINmyc;
78 static const double TMAXmyc;
79 static const double TREFmyc;
80 static const double KMMMmyc;
81 static const double DR_MYCmyc;
82 static const double DR_Mmyc;
83 static const double NH4UPTmyc;
84 static const double NO3UPTmyc;
85 static const double DONUPTmyc;
86 static const double RSMAX;
87 static const double NLIM;
88 static const double TLIM;
89 static const double RNLIM;
90 static const double MAXUPT;
91 static const double FCSTOR;
92 static const double COVOPT;
112 double CFCROPT,NCROOTOPT;
119 void MycNAllocation();
121 void MycCAllocation();
123 inline double Max(
double x,
double y){
124 return (x > y) ? x : y;
127 inline double Min(
double x,
double y){
128 return (x > y) ? y : x;
131 inline double Sqr(
double x){