Subversion Repositories public iLand

Rev

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

Rev 574 Rev 575
Line 333... Line 333...
333
    for (int i=0;i<mRUSpecies.count();i++) {
333
    for (int i=0;i<mRUSpecies.count();i++) {
334
        mRUSpecies[i]->statistics().calculate();
334
        mRUSpecies[i]->statistics().calculate();
335
        mStatistics.add(mRUSpecies[i]->statistics());
335
        mStatistics.add(mRUSpecies[i]->statistics());
336
    }
336
    }
337
    mStatistics.calculate();
337
    mStatistics.calculate();
338
    mAverageAging = mStatistics.leafAreaIndex()>0.?mAverageAging / (mStatistics.leafAreaIndex()*stockedArea()):0.;
-
 
-
 
338
    mAverageAging = mStatistics.leafAreaIndex()>0.?mAverageAging / (mStatistics.leafAreaIndex()*stockableArea()):0.;
339
    if (mAverageAging<0. || mAverageAging>1.)
339
    if (mAverageAging<0. || mAverageAging>1.)
340
        qDebug() << "Average aging invalid: (RU, LAI):" << index() << mStatistics.leafAreaIndex();
340
        qDebug() << "Average aging invalid: (RU, LAI):" << index() << mStatistics.leafAreaIndex();
341
}
341
}
342
342
343
void ResourceUnit::setMaxSaplingHeightAt(const QPoint &position, const float height)
343
void ResourceUnit::setMaxSaplingHeightAt(const QPoint &position, const float height)