Tests the clPowerHeightGrowth class.
More...
#include <TestPowerHeightGrowth.h>
|
void | TestRun1YearPerTimestep (clSimManager *p_oSimManager) |
| Tests height growth when the timestep length is one year.
|
|
void | TestRun3YearsPerTimestep (clSimManager *p_oSimManager) |
| Tests height growth when the timestep length is three years.
|
|
const char * | WriteXMLFile1 () |
| Writes a parameter file to direct testing for run 1.
|
|
const char * | WriteXMLFile2 () |
| Writes a parameter file to direct testing for run 1.
|
|
void | WriteCommonStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files.
|
|
Tests the clPowerHeightGrowth class.
void clTestPowerHeightGrowth::TestPowerHeightGrowth |
( |
| ) |
|
Combines the testing into one function.
void clTestPowerHeightGrowth::TestRun1YearPerTimestep |
( |
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. 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 clTestPowerHeightGrowth::TestRun3YearsPerTimestep |
( |
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. 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 clTestPowerHeightGrowth::WriteCommonStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test parameter files.
- Parameters
-
oOut | File stream to write to. |
const char* clTestPowerHeightGrowth::WriteXMLFile1 |
( |
| ) |
|
|
protected |
Writes a parameter file to direct testing for run 1.
Timestep length is 1 year. This contains four species. Power height growth is applied to 3 species. Diameter incrementer applied as well.
- Returns
- Filename written.
const char* clTestPowerHeightGrowth::WriteXMLFile2 |
( |
| ) |
|
|
protected |
Writes a parameter file to direct testing for run 1.
Timestep length is 3 years. This contains four species. Relative height growth is applied to 3 species. Diameter incrementer applied as well.
- Returns
- Filename written.
The documentation for this class was generated from the following file: