Subversion Repositories public iLand

Rev

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

Rev 546 Rev 547
Line 148... Line 148...
148
/// calculation is done on the level of ResourceUnit because the water content per day is needed.
148
/// calculation is done on the level of ResourceUnit because the water content per day is needed.
149
double Snag::calculateClimateFactors()
149
double Snag::calculateClimateFactors()
150
{
150
{
151
    double deficit;
151
    double deficit;
152
    double ft, fw;
152
    double ft, fw;
153
    const double top_layer_content = Model::settings().topLayerWaterContent;
-
 
-
 
153
    const double top_layer_content = mRU->waterCycle()->topLayerWaterContent();
154
    double f_sum = 0.;
154
    double f_sum = 0.;
155
    for (const ClimateDay *day=mRU->climate()->begin(); day!=mRU->climate()->end(); ++day)
155
    for (const ClimateDay *day=mRU->climate()->begin(); day!=mRU->climate()->end(); ++day)
156
    {
156
    {
157
        deficit = mRU->waterCycle()->waterDeficit_mm(day->day);
157
        deficit = mRU->waterCycle()->waterDeficit_mm(day->day);
158
158