SORTIE C++ Test Documentation
Functions
TestWindstorm.h File Reference
#include <fstream>

Functions

const char * WriteWindstormXMLFile1 ()
 Tests normal processing Run 8.
 
const char * WriteWindstormXMLFile2 ()
 Writes the parameter file for TestNormalProcessing2().
 
const char * WriteWindstormXMLFile3 ()
 Writes the parameter file for TestNormalProcessing3().
 
const char * WriteWindstormXMLFile4 ()
 Writes the parameter file for TestNormalProcessing4().
 
const char * WriteWindstormXMLFile5 ()
 Writes the parameter file for TestNormalProcessing5().
 
const char * WriteWindstormXMLFile6 ()
 Writes the parameter file for TestNormalProcessing6().
 
const char * WriteWindstormXMLFile7 ()
 Writes the parameter file for TestNormalProcessing7().
 
const char * WriteWindstormXMLFile8 ()
 Writes the parameter file for TestNormalProcessing8().
 
const char * WriteWindstormXMLErrorFile1 ()
 Writes an error file where the minimum DBH is negative.
 
const char * WriteWindstormXMLErrorFile2 ()
 Writes an error file where the storm damage applier behavior is applied to seedlings.
 
const char * WriteWindstormXMLErrorFile3 ()
 Writes an error file where the timestep to start storms is negative.
 
const char * WriteWindstormXMLErrorFile4 ()
 Writes an error file where the severity of a storm return interval is not between 0 and 1.
 
const char * WriteWindstormXMLErrorFile5 ()
 Writes an error file where mortality behaviors are not applied to all trees.
 
const char * WriteWindstormXMLErrorFile6 ()
 Writes an error file where the storm periodicity is zero.
 
void WriteWindstormCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files.
 
void WriteWindstormSnagBehaviorList (std::fstream &oOut)
 Writes the behavior list for the test parameter files with snags.
 
void WriteWindstormNoSnagBehaviorList (std::fstream &oOut)
 Writes the behavior list for the test parameter files without snags.
 

Function Documentation

void WriteWindstormCommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files.

Starts with <randomSeed> and ends with </allometry>.

Parameters
oOutFile stream to write to.
void WriteWindstormNoSnagBehaviorList ( std::fstream &  oOut)

Writes the behavior list for the test parameter files without snags.

Parameters
oOutFile stream to write to.
void WriteWindstormSnagBehaviorList ( std::fstream &  oOut)

Writes the behavior list for the test parameter files with snags.

Parameters
oOutFile stream to write to.
const char* WriteWindstormXMLErrorFile1 ( )

Writes an error file where the minimum DBH is negative.

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLErrorFile2 ( )

Writes an error file where the storm damage applier behavior is applied to seedlings.

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLErrorFile3 ( )

Writes an error file where the timestep to start storms is negative.

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLErrorFile4 ( )

Writes an error file where the severity of a storm return interval is not between 0 and 1.

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLErrorFile5 ( )

Writes an error file where mortality behaviors are not applied to all trees.

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLErrorFile6 ( )

Writes an error file where the storm periodicity is zero.

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile1 ( )

Tests normal processing Run 8.

WriteWindstormXMLFile8() writes the parameter file. This run tests to make sure storms below the minimum intensity are handled correctly. Aspects of the run:

  • 1 year per timestep.
  • No snags.
  • The following trees will be added, with a storm of 0.07 triggered for timestep 1:
    • Grid (0,0): 1000 trees of Species 1 and 2, DBH 30.
    • Grid (1,0): 1000 trees of Species 1 and 2, DBH 8.

The run proceeds for 1 timestep. The "Windstorm Results" grid is checked, and the actual number of trees alive and dead is checked as well.

Parameters
p_oSimManagerSim Manager object to run our test run. Writes the parameter file for TestNormalProcessing1().
Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile2 ( )

Writes the parameter file for TestNormalProcessing2().

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile3 ( )

Writes the parameter file for TestNormalProcessing3().

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile4 ( )

Writes the parameter file for TestNormalProcessing4().

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile5 ( )

Writes the parameter file for TestNormalProcessing5().

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile6 ( )

Writes the parameter file for TestNormalProcessing6().

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile7 ( )

Writes the parameter file for TestNormalProcessing7().

Returns
File name of the freshly written parameter file.
const char* WriteWindstormXMLFile8 ( )

Writes the parameter file for TestNormalProcessing8().

Returns
File name of the freshly written parameter file.