Tests the clPRStormBiLevelGrowth class.
More...
#include <TestPRStormBiLevelGrowth.h>
|
void | NormalProcessingRun1 (clSimManager *p_oSimManager) |
| Tests normal processing run 1.
|
|
void | NormalProcessingRun2 (clSimManager *p_oSimManager) |
| Tests normal processing run 2.
|
|
void | ErrorProcessing (clSimManager *p_oSimManager) |
| Tests error processing.
|
|
const char * | WriteXMLFile1 () |
| Writes a parameter file for normal processing run 1.
|
|
const char * | WriteXMLFile2 () |
| Writes a parameter file for normal processing run 2.
|
|
const char * | WriteXMLErrorFile1 () |
| Writes a parameter file where a value for high-light growth threshold is not between 0 and 100.
|
|
const char * | WriteXMLErrorFile2 () |
| Writes a parameter file where there is no "Storm Light" grid (because the storm light behavior is missing).
|
|
const char * | WriteXMLErrorFile3 () |
| Writes a parameter file where there is no "Storm" grid (because the storm behavior is missing).
|
|
void | WriteCommonStuff (std::fstream &oOut) |
| Writes common portions of the test parameter files.
|
|
void | WriteGrowthParameters (std::fstream &oOut, int iListPosition) |
| Writes growth parameters for the test parameter files.
|
|
Tests the clPRStormBiLevelGrowth class.
void clTestPRStormBiLevelGrowth::ErrorProcessing |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests error processing.
Inputs error files to make sure the errors are caught.
void clTestPRStormBiLevelGrowth::NormalProcessingRun1 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests normal processing run 1.
WriteXMLFile1() does setup. Timestep length is 1 year. The growth used is diam with auto height. 27 trees are created of 3 species and assigned to a mix of light levels and time-since- last-storm. Then growth is run. Tree diameters and heights are checked to make sure they are correct.
- Parameters
-
p_oSimManager | Sim manager object for doing the run. |
void clTestPRStormBiLevelGrowth::NormalProcessingRun2 |
( |
clSimManager * |
p_oSimManager | ) |
|
|
protected |
Tests normal processing run 2.
WriteXMLFile2() does setup. Timestep length is 3 years. The growth used is diam with auto height. 27 trees are created of 3 species and assigned to a mix of light levels and time-since- last-storm. Then growth is run. Tree diameters and heights are checked to make sure they are correct.
- Parameters
-
p_oSimManager | Sim manager object for doing the run. |
void clTestPRStormBiLevelGrowth::TestPRStormBiLevelGrowth |
( |
| ) |
|
Combines the testing into one behavior.
void clTestPRStormBiLevelGrowth::WriteCommonStuff |
( |
std::fstream & |
oOut | ) |
|
|
protected |
Writes common portions of the test parameter files.
This starts with <randomSeed> and ends with </allometry>.
- Parameters
-
oOut | File stream to write to. |
void clTestPRStormBiLevelGrowth::WriteGrowthParameters |
( |
std::fstream & |
oOut, |
|
|
int |
iListPosition |
|
) |
| |
|
protected |
Writes growth parameters for the test parameter files.
- Parameters
-
oOut | File stream to write to. |
iListPosition | List position. |
const char* clTestPRStormBiLevelGrowth::WriteXMLErrorFile1 |
( |
| ) |
|
|
protected |
Writes a parameter file where a value for high-light growth threshold is not between 0 and 100.
- Returns
- Filename written.
const char* clTestPRStormBiLevelGrowth::WriteXMLErrorFile2 |
( |
| ) |
|
|
protected |
Writes a parameter file where there is no "Storm Light" grid (because the storm light behavior is missing).
- Returns
- Filename written.
const char* clTestPRStormBiLevelGrowth::WriteXMLErrorFile3 |
( |
| ) |
|
|
protected |
Writes a parameter file where there is no "Storm" grid (because the storm behavior is missing).
- Returns
- Filename written.
const char* clTestPRStormBiLevelGrowth::WriteXMLFile1 |
( |
| ) |
|
|
protected |
Writes a parameter file for normal processing run 1.
- Returns
- Filename written.
const char* clTestPRStormBiLevelGrowth::WriteXMLFile2 |
( |
| ) |
|
|
protected |
Writes a parameter file for normal processing run 2.
- Returns
- Filename written.
The documentation for this class was generated from the following file: