Subversion Repositories public iLand

Rev

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

Rev 591 Rev 600
Line 358... Line 358...
358
    foreach(ResourceUnitSpecies* rus, mRUSpecies)
358
    foreach(ResourceUnitSpecies* rus, mRUSpecies)
359
        rus->clearSaplings(position);
359
        rus->clearSaplings(position);
360
360
361
}
361
}
362
362
-
 
363
float ResourceUnit::saplingHeightForInit(const QPoint &position) const
-
 
364
{
-
 
365
    double maxh = 0.;
-
 
366
    foreach(ResourceUnitSpecies* rus, mRUSpecies)
-
 
367
        maxh = qMax(maxh, rus->sapling().heightAt(position));
-
 
368
    return maxh;
-
 
369
}
363
370
364
void ResourceUnit::calculateCarbonCycle()
371
void ResourceUnit::calculateCarbonCycle()
365
{
372
{
366
    if (!snag())
373
    if (!snag())
367
        return;
374
        return;
Line 384... Line 391...
384
        out << snag()->debugList(); // snag debug outs
391
        out << snag()->debugList(); // snag debug outs
385
        out << soil()->debugList(); // ICBM/2N debug outs
392
        out << soil()->debugList(); // ICBM/2N debug outs
386
    }
393
    }
387
394
388
}
395
}
-
 
396
-
 
397