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

Functions

void VerifySubstrateRun1TS1Proportions (clGrid *p_oSubstrateGrid)
 This class tests substrate. More...
 
void VerifySubstrateRun1TS2Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 2 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS3Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 3 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS4Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 4 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS1Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 1 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS2Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 2 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS3Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 3 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS4Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 4 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS1Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 1 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS2Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 2 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS3Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 3 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS4Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 4 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS1SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS2SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS3SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun1TS4SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1(). More...
 
void VerifySubstrateRun2TS1Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 1 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS2Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 2 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS3Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 3 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS4Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 4 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS1Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 1 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS2Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 2 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS3Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 3 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS4Cohorts (clGrid *p_oSubstrateGrid)
 Verifies the cohort structure for timestep 4 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS1Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 1 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS2Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 2 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS3Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 3 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS4Tipup (clGrid *p_oCalcsGrid)
 Verifies new tipup for timestep 4 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS1SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS2SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS3SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun2TS4SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2(). More...
 
void VerifySubstrateRun4TS1Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 1 of TestSubstrateRun4(). More...
 
void VerifySubstrateRun4TS2Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 2 of TestSubstrateRun4(). More...
 
void VerifySubstrateRun4TS3Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 3 of TestSubstrateRun4(). More...
 
void VerifySubstrateRun4TS4Proportions (clGrid *p_oSubstrateGrid)
 Verifies the substrate proportions for timestep 4 of TestSubstrateRun4(). More...
 
void VerifySubstrateRun4TS1SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4(). More...
 
void VerifySubstrateRun4TS2SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4(). More...
 
void VerifySubstrateRun4TS3SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4(). More...
 
void VerifySubstrateRun4TS4SubstrateArrays (clGrid *p_oCalcsGrid)
 Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4(). More...
 
const char * WriteSubstrateXMLFile1 ()
 Writes a parameter file for harvest and mortality testing. More...
 
const char * WriteSubstrateXMLFile2 ()
 Writes a file for testing normal processing run 1. More...
 
const char * WriteSubstrateXMLFile3 ()
 Writes a file for testing normal processing run 3. More...
 
const char * WriteSubstrateXMLFile4 ()
 Writes a parameter file for testing tree tipup. More...
 
const char * WriteSubstrateXMLFile5 ()
 Writes a parameter file for testing tree fall. More...
 
const char * WriteSubstrateXMLFile6 ()
 Writes a file for testing normal processing run 4. More...
 
void WriteSubstrateCommonTreeStuff (std::fstream &oOut)
 Writes tree species information for runs of 1 species. More...
 

Function Documentation

◆ VerifySubstrateRun1TS1Cohorts()

void VerifySubstrateRun1TS1Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 1 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS1Proportions()

void VerifySubstrateRun1TS1Proportions ( clGrid *  p_oSubstrateGrid)

This class tests substrate.

Verifies the substrate proportions for timestep 1 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS1SubstrateArrays()

void VerifySubstrateRun1TS1SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS1Tipup()

void VerifySubstrateRun1TS1Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 1 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS2Cohorts()

void VerifySubstrateRun1TS2Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 2 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS2Proportions()

void VerifySubstrateRun1TS2Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 2 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS2SubstrateArrays()

void VerifySubstrateRun1TS2SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS2Tipup()

void VerifySubstrateRun1TS2Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 2 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS3Cohorts()

void VerifySubstrateRun1TS3Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 3 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS3Proportions()

void VerifySubstrateRun1TS3Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 3 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS3SubstrateArrays()

void VerifySubstrateRun1TS3SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS3Tipup()

void VerifySubstrateRun1TS3Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 3 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS4Cohorts()

void VerifySubstrateRun1TS4Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 4 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS4Proportions()

void VerifySubstrateRun1TS4Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 4 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS4SubstrateArrays()

void VerifySubstrateRun1TS4SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun1().

◆ VerifySubstrateRun1TS4Tipup()

void VerifySubstrateRun1TS4Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 4 of TestSubstrateRun1().

◆ VerifySubstrateRun2TS1Cohorts()

void VerifySubstrateRun2TS1Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 1 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS1Proportions()

void VerifySubstrateRun2TS1Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 1 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS1SubstrateArrays()

void VerifySubstrateRun2TS1SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS1Tipup()

void VerifySubstrateRun2TS1Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 1 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS2Cohorts()

void VerifySubstrateRun2TS2Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 2 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS2Proportions()

void VerifySubstrateRun2TS2Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 2 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS2SubstrateArrays()

void VerifySubstrateRun2TS2SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS2Tipup()

void VerifySubstrateRun2TS2Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 2 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS3Cohorts()

void VerifySubstrateRun2TS3Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 3 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS3Proportions()

void VerifySubstrateRun2TS3Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 3 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS3SubstrateArrays()

void VerifySubstrateRun2TS3SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS3Tipup()

void VerifySubstrateRun2TS3Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 3 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS4Cohorts()

void VerifySubstrateRun2TS4Cohorts ( clGrid *  p_oSubstrateGrid)

Verifies the cohort structure for timestep 4 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS4Proportions()

void VerifySubstrateRun2TS4Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 4 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS4SubstrateArrays()

void VerifySubstrateRun2TS4SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun2().

◆ VerifySubstrateRun2TS4Tipup()

void VerifySubstrateRun2TS4Tipup ( clGrid *  p_oCalcsGrid)

Verifies new tipup for timestep 4 of TestSubstrateRun2().

◆ VerifySubstrateRun4TS1Proportions()

void VerifySubstrateRun4TS1Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 1 of TestSubstrateRun4().

◆ VerifySubstrateRun4TS1SubstrateArrays()

void VerifySubstrateRun4TS1SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4().

◆ VerifySubstrateRun4TS2Proportions()

void VerifySubstrateRun4TS2Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 2 of TestSubstrateRun4().

◆ VerifySubstrateRun4TS2SubstrateArrays()

void VerifySubstrateRun4TS2SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4().

◆ VerifySubstrateRun4TS3Proportions()

void VerifySubstrateRun4TS3Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 3 of TestSubstrateRun4().

◆ VerifySubstrateRun4TS3SubstrateArrays()

void VerifySubstrateRun4TS3SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4().

◆ VerifySubstrateRun4TS4Proportions()

void VerifySubstrateRun4TS4Proportions ( clGrid *  p_oSubstrateGrid)

Verifies the substrate proportions for timestep 4 of TestSubstrateRun4().

◆ VerifySubstrateRun4TS4SubstrateArrays()

void VerifySubstrateRun4TS4SubstrateArrays ( clGrid *  p_oCalcsGrid)

Verifies the fresh and decayed logs arrays for timestep 1 of TestSubstrateRun4().

◆ WriteSubstrateCommonTreeStuff()

void WriteSubstrateCommonTreeStuff ( std::fstream &  oOut)

Writes tree species information for runs of 1 species.

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

◆ WriteSubstrateXMLFile1()

const char* WriteSubstrateXMLFile1 ( )

Writes a parameter file for harvest and mortality testing.

Returns
Filename written.

◆ WriteSubstrateXMLFile2()

const char* WriteSubstrateXMLFile2 ( )

Writes a file for testing normal processing run 1.

Returns
Filename written.

◆ WriteSubstrateXMLFile3()

const char* WriteSubstrateXMLFile3 ( )

Writes a file for testing normal processing run 3.

Returns
Filename written.

◆ WriteSubstrateXMLFile4()

const char* WriteSubstrateXMLFile4 ( )

Writes a parameter file for testing tree tipup.

There are three species. There is a behavior which is applied to snags. The timestep length is 1 year. The substrate grid cell size is set to 45 X 45 meters.

Returns
Filename written.

◆ WriteSubstrateXMLFile5()

const char* WriteSubstrateXMLFile5 ( )

Writes a parameter file for testing tree fall.

There are three species. For species 1, 20% of dead trees fall; for species 2, 50%; and for species 3, 0%. There is a behavior which is applied to snags. The timestep length is 1 year.

In order to test grid stuff, this also has no harvest defined but has Substrate and substratecalcs grid maps.

Returns
Filename written.

◆ WriteSubstrateXMLFile6()

const char* WriteSubstrateXMLFile6 ( )

Writes a file for testing normal processing run 4.

Returns
Filename written.