Subversion Repositories public iLand

Rev

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

Rev 587 Rev 588
Line 292... Line 292...
292
    mTotalSWD = mSWD[0] + mSWD[1] + mSWD[2];
292
    mTotalSWD = mSWD[0] + mSWD[1] + mSWD[2];
293
    mTotalOther = mOtherWood[0] + mOtherWood[1] + mOtherWood[2] + mOtherWood[3] + mOtherWood[4];
293
    mTotalOther = mOtherWood[0] + mOtherWood[1] + mOtherWood[2] + mOtherWood[3] + mOtherWood[4];
294
}
294
}
295
295
296
/// foliage and fineroot litter is transferred during tree growth.
296
/// foliage and fineroot litter is transferred during tree growth.
297
void Snag::addTurnoverLitter(const Tree *tree, const double litter_foliage, const double litter_fineroot)
-
 
-
 
297
void Snag::addTurnoverLitter(const Species *species, const double litter_foliage, const double litter_fineroot)
298
{
298
{
299
    mLabileFlux.addBiomass(litter_foliage, tree->species()->cnFoliage(), tree->species()->snagKyl());
-
 
300
    mLabileFlux.addBiomass(litter_fineroot, tree->species()->cnFineroot(), tree->species()->snagKyl());
-
 
-
 
299
    mLabileFlux.addBiomass(litter_foliage, species->cnFoliage(), species->snagKyl());
-
 
300
    mLabileFlux.addBiomass(litter_fineroot, species->cnFineroot(), species->snagKyl());
301
}
301
}
302
302
303
/// after the death of the tree the five biomass compartments are processed.
303
/// after the death of the tree the five biomass compartments are processed.
304
void Snag::addMortality(const Tree *tree)
304
void Snag::addMortality(const Tree *tree)
305
{
305
{
Line 369... Line 369...
369
    mTotalToExtern.addBiomass(tree->biomassFoliage()*remove_foliage_fraction +
369
    mTotalToExtern.addBiomass(tree->biomassFoliage()*remove_foliage_fraction +
370
                              tree->biomassBranch()*remove_branch_fraction +
370
                              tree->biomassBranch()*remove_branch_fraction +
371
                              tree->biomassStem()*remove_stem_fraction, species->cnWood());
371
                              tree->biomassStem()*remove_stem_fraction, species->cnWood());
372
}
372
}
373
373
374
-
 
-
 
374
// add flow from regeneration layer (dead trees) to soil
-
 
375
void Snag::addRegeneration(const Species *species, const CNPair &woody_pool, const CNPair &litter_pool)
-
 
376
{
-
 
377
    mLabileFlux.add(litter_pool, species->snagKyl());
-
 
378
    mRefractoryFlux.add(woody_pool, species->snagKyr());
-
 
379
}
375
380
376
381