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

Functions

const char * WriteRelativeGrowthXMLFile1 ()
 Tests the clRelativeGrowth class. More...
 
const char * WriteRelativeGrowthXMLFile2 ()
 Writes a parameter file to direct testing. More...
 
const char * WriteRelativeGrowthXMLFile3 ()
 Writes a parameter file to direct testing. More...
 
const char * WriteRelativeGrowthXMLFile4 ()
 Writes a parameter file to direct testing. More...
 
const char * WriteRelativeGrowthXMLFile5 ()
 Writes a parameter file to direct testing for run 3. More...
 
const char * WriteRelativeGrowthXMLFile6 ()
 Writes a parameter file to direct testing for run 3. More...
 
void WriteRelativeGrowthRun3CommonStuff (std::fstream &oOut)
 Writes common portions of the run 3 test parameter files. More...
 

Function Documentation

◆ WriteRelativeGrowthRun3CommonStuff()

void WriteRelativeGrowthRun3CommonStuff ( std::fstream &  oOut)

Writes common portions of the run 3 test parameter files.

Parameters
oOutFile stream to write to.

◆ WriteRelativeGrowthXMLFile1()

const char* WriteRelativeGrowthXMLFile1 ( )

Tests the clRelativeGrowth class.

This tests all six types of relative growth - non-limited relative growth, relative growth limited to constant radial increment, relative growth limited to constant basal area increment, non-limited relative growth - diameter update only, relative growth limited to constant radial increment - diameter update only, and relative growth limited to constant basal area increment - diameter update only. Writes a parameter file to direct testing. Timestep length is 1 year. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are 1.
Returns
Filename written.

◆ WriteRelativeGrowthXMLFile2()

const char* WriteRelativeGrowthXMLFile2 ( )

Writes a parameter file to direct testing.

Timestep length is 3 years. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are 1.
Returns
Filename written.

◆ WriteRelativeGrowthXMLFile3()

const char* WriteRelativeGrowthXMLFile3 ( )

Writes a parameter file to direct testing.

Timestep length is 1 year. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are non-1.
Returns
Filename written.

◆ WriteRelativeGrowthXMLFile4()

const char* WriteRelativeGrowthXMLFile4 ( )

Writes a parameter file to direct testing.

Timestep length is 3 years. This contains three species. Behaviors:

  • Non-limited relative growth is applied to Species 1 saplings.
  • Relative growth limited to constant radial increment is applied to Species 2 saplings.
  • Relative growth limited to basal area increment is applied to Species 1 adults.
  • Non-limited relative growth - diameter only is applied to Species 3 saplings.
  • Relative growth limited to constant radial increment - diameter only is applied to Species 4 saplings.
  • Relative growth limited to basal area increment - diameter only is applied to Species 3 adults.
  • Height incrementer applied to all with diameter only behaviors.
  • Diameter exponents are non-1.
Returns
Filename written.

◆ WriteRelativeGrowthXMLFile5()

const char* WriteRelativeGrowthXMLFile5 ( )

Writes a parameter file to direct testing for run 3.

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.

◆ WriteRelativeGrowthXMLFile6()

const char* WriteRelativeGrowthXMLFile6 ( )

Writes a parameter file to direct testing for run 3.

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.