#include <TestMichMenNegGrowth.h>
Public Member Functions | |
void | TestMichMenNegGrowth () |
Combines the testing into one function. | |
Protected Member Functions | |
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 | Test2Run1YearPerTimestep (clSimManager *p_oSimManager) |
Tests height growth with autocorrelation when the timestep length is one year. | |
void | TestErrorProcessing (clSimManager *p_oSimManager) |
Tests error processing. | |
char * | WriteXMLFile1 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLFile2 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLFile3 () |
Writes a parameter file to direct testing. | |
char * | WriteXMLErrorFile1 () |
Writes an error file where the beta parameter = 0. | |
char * | WriteXMLErrorFile2 () |
Writes an error file where the autocorrelation chance is not between 0 and 1. | |
void | WriteRun1CommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files. | |
void | WriteRun2CommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files. | |
void | WriteErrorCommonStuff (std::fstream &oOut) |
Writes common portions of the test parameter files. |
void clTestMichMenNegGrowth::TestMichMenNegGrowth | ( | ) |
Combines the testing into one function.
void clTestMichMenNegGrowth::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.
p_oSimManager | Sim manager object for doing the run. |
void clTestMichMenNegGrowth::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.
p_oSimManager | Sim manager object for doing the run. |
void clTestMichMenNegGrowth::Test2Run1YearPerTimestep | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests height growth with autocorrelation when the timestep length is one year.
WriteXMLFile3() is used to set up the run.
p_oSimManager | Sim manager object for doing the run. |
void clTestMichMenNegGrowth::TestErrorProcessing | ( | clSimManager * | p_oSimManager | ) | [protected] |
Tests error processing.
p_oSimManager | Sim Manager to do runs. |
char* clTestMichMenNegGrowth::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.
char* clTestMichMenNegGrowth::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.
char* clTestMichMenNegGrowth::WriteXMLFile3 | ( | ) | [protected] |
Writes a parameter file to direct testing.
Timestep length is 1 year. This contains five species. Relative height growth is applied to all species. Diameter incrementer applied to all as well.
char* clTestMichMenNegGrowth::WriteXMLErrorFile1 | ( | ) | [protected] |
Writes an error file where the beta parameter = 0.
char* clTestMichMenNegGrowth::WriteXMLErrorFile2 | ( | ) | [protected] |
Writes an error file where the autocorrelation chance is not between 0 and 1.
void clTestMichMenNegGrowth::WriteRun1CommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files.
oOut | File stream to write to. |
void clTestMichMenNegGrowth::WriteRun2CommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files.
oOut | File stream to write to. |
void clTestMichMenNegGrowth::WriteErrorCommonStuff | ( | std::fstream & | oOut | ) | [protected] |
Writes common portions of the test parameter files.
oOut | File stream to write to. |