#include <GMFMort.h>
Inheritance diagram for clGMFMort:
Public Member Functions | |
clGMFMort (clSimManager *p_oSimManager) | |
Constructor. | |
~clGMFMort () | |
Destructor. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Performs setup. | |
bool | DoMort (clTree *p_oTree, const float &fDbh, const short int &iSpecies) |
Calculates mortality according to the GMF mortality equation. | |
Protected Member Functions | |
void | GetGrowthVariableCodes () |
Queries for the return codes of the "Growth" float data member of a tree. | |
Protected Attributes | |
short int ** | mp_iGrowthCodes |
data member codes for "Growth" member - species by type | |
float * | mp_fMortAtZeroGrowth |
Mortality at zero growth. | |
float * | mp_fLightDepMort |
Light dependent mortality. |
This evaluates growth-based mortality according to the GMF mortality equation. Since this equation assumes a timestep length of 5 years, and the equation has not yet been reworked, this will throw a fatal error if the timestep length is not five years.
All species/type combos wishing to use this behavior must have the "Growth" data member registered. It is assumed that the value in that data member when mortality is called is the amount of growth for this timestep.
This class's namestring is "gmfmortshell".
Copyright 2003 Charles D. Canham.
|
Constructor. Sets the namestring.
|
|
Calculates mortality according to the GMF mortality equation.
Implements clMortalityBase. |
|
Performs setup. This reads in values from parameter file. It also collects data member codes for "Growth" for each type/species combo to which it is assigned.
Reimplemented from clMortalityBase. |
|
Queries for the return codes of the "Growth" float data member of a tree. This data member should have been registered by light. Return codes are captured in the mp_iGrowthCodes array.
|
|
Light dependent mortality. Old parameter m2 |
|
Mortality at zero growth. Old parameter m1 |