Tests the clMichMenPhotoinhibition class.
More...
#include <TestMichMenPhotoinhibition.h>
|
void | Test1Run1YearPerTimestep (clSimManager *p_oSimManager) |
| Tests height growth when the timestep length is one year.
|
|
void | Test1Run3YearsPerTimestep (clSimManager *p_oSimManager) |
| Tests height growth when the timestep length is three years.
|
|
void | TestErrorProcessing (clSimManager *p_oSimManager) |
| Tests error processing.
|
|
const char * | WriteXMLFile1 () |
| Writes a parameter file to direct testing.
|
|
const char * | WriteXMLFile2 () |
| Writes a parameter file to direct testing.
|
|
const char * | WriteXMLErrorFile1 () |
| Writes an error file where the beta parameter = 0.
|
|
void | WriteCommonStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files.
|
|
Tests the clMichMenPhotoinhibition class.
void clTestMichMenPhotoinhibition::Test1Run1YearPerTimestep |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests height growth when the timestep length is one year.
WriteXMLFile1() is used to set up the run. 10 trees are created of four species. GLIs are assigned to them, and then growth is run. Their diameters, heights, and "Growth" values are checked to make sure they are correct.
- Parameters
-
p_oSimManager | Sim manager object for doing the run. |
void clTestMichMenPhotoinhibition::Test1Run3YearsPerTimestep |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests height growth when the timestep length is three years.
WriteXMLFile2() is used to set up the run. 10 trees are created of four species. GLIs are assigned to them, and then growth is run. Their diameters, heights, and "Growth" values are checked to make sure they are correct.
- Parameters
-
p_oSimManager | Sim manager object for doing the run. |
void clTestMichMenPhotoinhibition::TestErrorProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests error processing.
- Parameters
-
p_oSimManager | Sim Manager to do runs. |
void clTestMichMenPhotoinhibition::TestMichMenPhotoinhibition |
( |
| ) |
|
Combines the testing into one function.
void clTestMichMenPhotoinhibition::WriteCommonStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test parameter files.
- Parameters
-
oOut | File stream to write to. |
const char* clTestMichMenPhotoinhibition::WriteXMLErrorFile1 |
( |
| ) |
|
|
protected |
Writes an error file where the beta parameter = 0.
- Returns
- File name of the freshly written parameter file.
const char* clTestMichMenPhotoinhibition::WriteXMLFile1 |
( |
| ) |
|
|
protected |
Writes a parameter file to direct testing.
Timestep length is 1 year. This contains four species. Relative height growth is applied to all species. Diameter incrementer applied to all as well.
- Returns
- Filename written.
const char* clTestMichMenPhotoinhibition::WriteXMLFile2 |
( |
| ) |
|
|
protected |
Writes a parameter file to direct testing.
Timestep length is 3 years. This contains four species. Relative height growth is applied to all species. Diameter incrementer applied to all as well.
- Returns
- Filename written.
The documentation for this class was generated from the following file: