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

Functions

const char * WriteNCIGrowthXMLFile1 ()
 Writes a parameter file to direct testing. More...
 
const char * WriteNCIGrowthXMLFile2 ()
 Writes a 1-year timestep file. More...
 
const char * WriteNCIGrowthXMLFile3 ()
 Writes a 3-year timestep file. More...
 
const char * WriteNCIGrowthXMLFile4 ()
 Writes a 1-year timestep file. More...
 
const char * WriteNCIGrowthXMLFile5 ()
 Writes a 3-year timestep file. More...
 
const char * WriteNCIGrowthXMLFile6 ()
 Writes a 1-timestep file for Run 3. More...
 
const char * WriteNCIGrowthXMLFile7 ()
 Writes a 3-timestep file for Run 3. More...
 
const char * WriteNCIGrowthXMLFile8 ()
 Writes a 1-timestep file for Run 4. More...
 
const char * WriteNCIGrowthXMLFile9 ()
 Writes a 3-timestep file for Run 4. More...
 
const char * WriteNCIGrowthXMLFile10 ()
 Writes a 1-timestep file for Run 5. More...
 
const char * WriteNCIGrowthXMLFile11 ()
 Writes a 3-timestep file for Run 5. More...
 
const char * WriteNCIGrowthXMLFile12 ()
 Writes a 1-timestep file for Run 6. More...
 
const char * WriteNCIGrowthXMLFile13 ()
 Writes a 3-timestep file for Run 6. More...
 
const char * WriteNCIGrowthXMLErrorFile1 (bool bDefault)
 Writes an error condition where max radius of neighbor effects is < 0, with default NCI or NCI with neighbor damage. More...
 
const char * WriteNCIGrowthXMLErrorFile2 ()
 Writes an error condition where max growth for a species is < 0. More...
 
const char * WriteNCIGrowthXMLErrorFile3 ()
 Writes an error condition where Xb for a species = 0. More...
 
const char * WriteNCIGrowthXMLErrorFile4 ()
 Writes an error condition where X0 for a species = 0. More...
 
const char * WriteNCIGrowthXMLErrorFile5 ()
 Writes an error condition where med. More...
 
const char * WriteNCIGrowthXMLErrorFile6 ()
 Writes an error condition where med. More...
 
const char * WriteNCIGrowthXMLErrorFile7 ()
 Writes an error condition where full damage eta for a species < 0. More...
 
const char * WriteNCIGrowthXMLErrorFile8 ()
 Writes an error condition where full damage eta for a species > 1. More...
 
const char * WriteNCIGrowthXMLErrorFile9 ()
 Writes an error condition where med. More...
 
const char * WriteNCIGrowthXMLErrorFile10 ()
 Writes an error condition where med. More...
 
const char * WriteNCIGrowthXMLErrorFile11 ()
 Writes an error condition where full damage storm effect for a species < 0. More...
 
const char * WriteNCIGrowthXMLErrorFile12 ()
 Writes an error condition where full damage storm effect for a species > 1. More...
 
const char * WriteNCIGrowthXMLErrorFile13 ()
 Writes an error condition where shading is used but there is no light behavior. More...
 
const char * WriteNCIGrowthXMLErrorFile14 (bool bDefault)
 Writes an error condition where a neighbor DBH is less than 0, with default NCI or NCI with neighbor damage. More...
 
void WriteNCIGrowthCommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files (tree pop, plot, etc). More...
 
void WriteNCIGrowthRun1CommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files for Run 1. More...
 
void WriteNCIGrowthRun2CommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files for Run 2. More...
 
void WriteNCIGrowthRun3CommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files for Run 3. More...
 
void WriteNCIGrowthRun4CommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files for Run 4. More...
 
void WriteNCIGrowthRun5CommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files for Run 5. More...
 
void WriteNCIGrowthRun6CommonStuff (std::fstream &oOut)
 Writes common portions of the test parameter files for Run 6. More...
 
void WriteNCIGrowthErrorFileCommonStuff (std::fstream &oOut)
 Writes common portions of the test error parameter files (tree pop, plot, etc). More...
 
void WriteNCIGrowthStormErrorFileCommonStuff (std::fstream &oOut)
 Writes common portions of the test error parameter files that deal with storms. More...
 

Function Documentation

◆ WriteNCIGrowthCommonStuff()

void WriteNCIGrowthCommonStuff ( std::fstream &  oOut)

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

Picks up right after the number of years per timestep and ends at the closing tree tag.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthErrorFileCommonStuff()

void WriteNCIGrowthErrorFileCommonStuff ( 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.

◆ WriteNCIGrowthRun1CommonStuff()

void WriteNCIGrowthRun1CommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files for Run 1.

Picks up at the behavior list through the end of the file.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthRun2CommonStuff()

void WriteNCIGrowthRun2CommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files for Run 2.

Picks up at the behavior list through the end of the file.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthRun3CommonStuff()

void WriteNCIGrowthRun3CommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files for Run 3.

Picks up at the behavior list through the end of the file.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthRun4CommonStuff()

void WriteNCIGrowthRun4CommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files for Run 4.

Picks up at the behavior list through the end of the file.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthRun5CommonStuff()

void WriteNCIGrowthRun5CommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files for Run 5.

Picks up at the behavior list through the end of the file.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthRun6CommonStuff()

void WriteNCIGrowthRun6CommonStuff ( std::fstream &  oOut)

Writes common portions of the test parameter files for Run 6.

Picks up at the behavior list through the end of the file.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthStormErrorFileCommonStuff()

void WriteNCIGrowthStormErrorFileCommonStuff ( std::fstream &  oOut)

Writes common portions of the test error parameter files that deal with storms.

Parameters
oOutFile stream to write to.

◆ WriteNCIGrowthXMLErrorFile1()

const char* WriteNCIGrowthXMLErrorFile1 ( bool  bDefault)

Writes an error condition where max radius of neighbor effects is < 0, with default NCI or NCI with neighbor damage.

Parameters
bDefaultif true, write default NCI; if false, write with neighbor damage.
Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile10()

const char* WriteNCIGrowthXMLErrorFile10 ( )

Writes an error condition where med.

damage storm effect for a species > 1.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile11()

const char* WriteNCIGrowthXMLErrorFile11 ( )

Writes an error condition where full damage storm effect for a species < 0.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile12()

const char* WriteNCIGrowthXMLErrorFile12 ( )

Writes an error condition where full damage storm effect for a species > 1.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile13()

const char* WriteNCIGrowthXMLErrorFile13 ( )

Writes an error condition where shading is used but there is no light behavior.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile14()

const char* WriteNCIGrowthXMLErrorFile14 ( bool  bDefault)

Writes an error condition where a neighbor DBH is less than 0, with default NCI or NCI with neighbor damage.

Parameters
bDefaultif true, write default NCI; if false, write with neighbor damage.
Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile2()

const char* WriteNCIGrowthXMLErrorFile2 ( )

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

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile3()

const char* WriteNCIGrowthXMLErrorFile3 ( )

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

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile4()

const char* WriteNCIGrowthXMLErrorFile4 ( )

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

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile5()

const char* WriteNCIGrowthXMLErrorFile5 ( )

Writes an error condition where med.

damage eta for a species < 0.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile6()

const char* WriteNCIGrowthXMLErrorFile6 ( )

Writes an error condition where med.

damage eta for a species > 1.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile7()

const char* WriteNCIGrowthXMLErrorFile7 ( )

Writes an error condition where full damage eta for a species < 0.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile8()

const char* WriteNCIGrowthXMLErrorFile8 ( )

Writes an error condition where full damage eta for a species > 1.

Returns
Filename written.

◆ WriteNCIGrowthXMLErrorFile9()

const char* WriteNCIGrowthXMLErrorFile9 ( )

Writes an error condition where med.

damage storm effect for a species < 0.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile1()

const char* WriteNCIGrowthXMLFile1 ( )

Writes a parameter file to direct testing.

This contains two species, identical in all ways except Species 1 is assigned NCI growth as a diameter-auto, and Species 2 is assigned NCI growth as diameter-only.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile10()

const char* WriteNCIGrowthXMLFile10 ( )

Writes a 1-timestep file for Run 5.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile11()

const char* WriteNCIGrowthXMLFile11 ( )

Writes a 3-timestep file for Run 5.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile12()

const char* WriteNCIGrowthXMLFile12 ( )

Writes a 1-timestep file for Run 6.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile13()

const char* WriteNCIGrowthXMLFile13 ( )

Writes a 3-timestep file for Run 6.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile2()

const char* WriteNCIGrowthXMLFile2 ( )

Writes a 1-year timestep file.

This contains 3 species. NCI growth (auto-height) is assigned to adults of Species 1.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile3()

const char* WriteNCIGrowthXMLFile3 ( )

Writes a 3-year timestep file.

This contains 3 species. NCI growth (auto-height) is assigned to adults of Species 1.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile4()

const char* WriteNCIGrowthXMLFile4 ( )

Writes a 1-year timestep file.

This contains 4 species, one unused (species 3; this helps catch array-index problems). NCI growth (auto-height) is assigned to all saplings and adults.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile5()

const char* WriteNCIGrowthXMLFile5 ( )

Writes a 3-year timestep file.

This contains 4 species, one unused (species 3; this helps catch array-index problems). NCI growth (auto-height) is assigned to all saplings and adults.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile6()

const char* WriteNCIGrowthXMLFile6 ( )

Writes a 1-timestep file for Run 3.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile7()

const char* WriteNCIGrowthXMLFile7 ( )

Writes a 3-timestep file for Run 3.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile8()

const char* WriteNCIGrowthXMLFile8 ( )

Writes a 1-timestep file for Run 4.

Returns
Filename written.

◆ WriteNCIGrowthXMLFile9()

const char* WriteNCIGrowthXMLFile9 ( )

Writes a 3-timestep file for Run 4.

Returns
Filename written.