Subversion Repositories public iLand

Rev

Rev 230 | Rev 247 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1
 
187 iland 2
/** @class ResourceUnitSpecies contains data per ResourceUnit x Species
111 Werner 3
    Data stored is either statistical (i.e. number of trees per species) or used
4
    within the model (e.g. fraction of utilizable Radiation)
5
  */
6
#include "global.h"
189 iland 7
#include "resourceunitspecies.h"
111 Werner 8
 
9
#include "species.h"
189 iland 10
#include "resourceunit.h"
235 werner 11
void ResourceUnitSpecies::setup(Species *species, ResourceUnit *ru)
12
{
13
    mSpecies = species;
14
    mRU = ru;
15
    mResponse.setup(this);
16
    m3PG.setResponse(&mResponse);
17
    mStatistics.setResourceUnitSpecies(this);
18
}
111 Werner 19
 
20
 
226 werner 21
void ResourceUnitSpecies::calculate()
22
{
23
    mResponse.calculate();///< calculate environmental responses per species (vpd, temperature, ...)
24
    m3PG.calculate();///< production of NPP
25
}