Subversion Repositories public iLand

Rev

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

Rev 575 Rev 591
Line 59... Line 59...
59
    mSnag=0;
59
    mSnag=0;
60
    if (mSoil)
60
    if (mSoil)
61
        delete mSoil;
61
        delete mSoil;
62
    mSoil=0;
62
    mSoil=0;
63
    if (Model::settings().carbonCycleEnabled) {
63
    if (Model::settings().carbonCycleEnabled) {
64
        mSoil = new Soil;
-
 
-
 
64
        mSoil = new Soil(this);
65
        mSnag = new Snag;
65
        mSnag = new Snag;
66
        mSnag->setup(this);
66
        mSnag->setup(this);
67
        const XmlHelper &xml=GlobalSettings::instance()->settings();
67
        const XmlHelper &xml=GlobalSettings::instance()->settings();
68
68
69
        // setup contents of the soil of the RU; use values for C and N (kg/ha)
69
        // setup contents of the soil of the RU; use values for C and N (kg/ha)