Subversion Repositories public iLand

Rev

Rev 525 | Rev 527 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 525 Rev 526
Line 13... Line 13...
13
    void setInitialState(const CNPool &young_labile_kg_ha, const CNPool &young_refractory_kg_ha, const CNPool &SOM_kg_ha) { mYL = young_labile_kg_ha*0.001; mYR = young_refractory_kg_ha*0.001; mSOM = SOM_kg_ha*0.001; }
13
    void setInitialState(const CNPool &young_labile_kg_ha, const CNPool &young_refractory_kg_ha, const CNPool &SOM_kg_ha) { mYL = young_labile_kg_ha*0.001; mYR = young_refractory_kg_ha*0.001; mSOM = SOM_kg_ha*0.001; }
14
14
15
    // actions
15
    // actions
16
    void setSoilInput(const CNPool &labile_input_kg_ha, const CNPool &refractory_input_kg_ha); ///< provide values for input pools
16
    void setSoilInput(const CNPool &labile_input_kg_ha, const CNPool &refractory_input_kg_ha); ///< provide values for input pools
17
    void setClimateFactor(const double climate_factor_re) { mRE = climate_factor_re; } ///< set the climate decomposition factor for the current year
17
    void setClimateFactor(const double climate_factor_re) { mRE = climate_factor_re; } ///< set the climate decomposition factor for the current year
18
    void calculate(); ///< main calculation function: calculates the update of state variables
-
 
-
 
18
    void calculateYear(); ///< main calculation function: calculates the update of state variables
19
19
20
    // access
20
    // access
21
    const CNPool &youngLabile() const { return mYL;} ///< young labile matter (t/ha)
21
    const CNPool &youngLabile() const { return mYL;} ///< young labile matter (t/ha)
22
    const CNPool &youngRefractory() const { return mYR;} ///< young refractory matter (t/ha)
22
    const CNPool &youngRefractory() const { return mYR;} ///< young refractory matter (t/ha)
23
    const CNPool &oldOrganicMatter() const { return mSOM;} ///< old matter (SOM) (t/ha)
23
    const CNPool &oldOrganicMatter() const { return mSOM;} ///< old matter (SOM) (t/ha)