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

Functions

const char * WriteWeibullClimateGrowthXMLFile1 ()
 Tests a legacy configuration of clNCIMasterGrowth - the clWeibullClimateGrowth class, whose functionality got folded into it. More...
 
const char * WriteWeibullClimateGrowthXMLFile2 ()
 Writes a 3-year timestep file. More...
 
const char * WriteWeibullClimateGrowthXMLFile3 ()
 Writes a 1-year timestep file. More...
 
const char * WriteWeibullClimateGrowthXMLErrorFile1 ()
 Writes an error condition where max radius of neighbor effects is < 0. More...
 
const char * WriteWeibullClimateGrowthXMLErrorFile2 ()
 Writes an error condition where max growth for a species is < 0. More...
 
const char * WriteWeibullClimateGrowthXMLErrorFile3 ()
 Writes an error condition where Xb for a species = 0. More...
 
const char * WriteWeibullClimateGrowthXMLErrorFile4 ()
 Writes an error condition where X0 for a species = 0. More...
 
const char * WriteWeibullClimateGrowthXMLErrorFile5 ()
 Writes an error condition where a precipitation A = 0. More...
 
const char * WriteWeibullClimateGrowthXMLErrorFile6 ()
 Writes an error condition where a temperature A = 0. More...
 
const char * WriteWeibullClimateGrowthXMLErrorFile7 ()
 Writes an error condition where a nitrogen Xb = 0. More...
 
void WriteWeibullClimateGrowthCommonStuff (std::fstream &oOut, int iPrecipType)
 Writes common portions of the test parameter files (tree pop, plot, etc). More...
 
void WriteWeibullClimateGrowthTreeStuff (std::fstream &oOut)
 Writes common portions of the test parameter files (tree pop, plot, etc). More...
 
void WriteWeibullClimateGrowthErrorFileCommonStuff (std::fstream &oOut)
 Writes common portions of the test error parameter files (tree pop, plot, etc). More...
 

Function Documentation

◆ WriteWeibullClimateGrowthCommonStuff()

void WriteWeibullClimateGrowthCommonStuff ( std::fstream &  oOut,
int  iPrecipType 
)

Writes common portions of the test parameter files (tree pop, plot, etc).

Picks up right after the number of years per timestep and finishes out the file.

Parameters
oOutFile stream to write to.
iPrecipTypePrecipitation type.

◆ WriteWeibullClimateGrowthErrorFileCommonStuff()

void WriteWeibullClimateGrowthErrorFileCommonStuff ( std::fstream &  oOut)

Writes common portions of the test error parameter files (tree pop, plot, etc).

Starts at the beginning of the file and ends at the closing tree tag.

Parameters
oOutFile stream to write to.

◆ WriteWeibullClimateGrowthTreeStuff()

void WriteWeibullClimateGrowthTreeStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files (tree pop, plot, etc).

Parameters
oOutFile stream to write to.

◆ WriteWeibullClimateGrowthXMLErrorFile1()

const char* WriteWeibullClimateGrowthXMLErrorFile1 ( )

Writes an error condition where max radius of neighbor effects is < 0.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLErrorFile2()

const char* WriteWeibullClimateGrowthXMLErrorFile2 ( )

Writes an error condition where max growth for a species is < 0.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLErrorFile3()

const char* WriteWeibullClimateGrowthXMLErrorFile3 ( )

Writes an error condition where Xb for a species = 0.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLErrorFile4()

const char* WriteWeibullClimateGrowthXMLErrorFile4 ( )

Writes an error condition where X0 for a species = 0.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLErrorFile5()

const char* WriteWeibullClimateGrowthXMLErrorFile5 ( )

Writes an error condition where a precipitation A = 0.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLErrorFile6()

const char* WriteWeibullClimateGrowthXMLErrorFile6 ( )

Writes an error condition where a temperature A = 0.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLErrorFile7()

const char* WriteWeibullClimateGrowthXMLErrorFile7 ( )

Writes an error condition where a nitrogen Xb = 0.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLFile1()

const char* WriteWeibullClimateGrowthXMLFile1 ( )

Tests a legacy configuration of clNCIMasterGrowth - the clWeibullClimateGrowth class, whose functionality got folded into it.

Writes a 1-year timestep file. This contains 4 species. Weibull climate growth (auto-height) is assigned to saplings and adults of Species 2, 3, and 4.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLFile2()

const char* WriteWeibullClimateGrowthXMLFile2 ( )

Writes a 3-year timestep file.

This contains 4 species. Weibull climate growth (auto-height) is assigned to saplings and adults of Species 2, 3, and 4.

Returns
Filename written.

◆ WriteWeibullClimateGrowthXMLFile3()

const char* WriteWeibullClimateGrowthXMLFile3 ( )

Writes a 1-year timestep file.

Same as File 1, but with a nitrogen effect as well.

Returns
Filename written.