queso-0.51.1
Private Member Functions | List of all members
QUESO::EnvOptionsValues Class Reference

This class provides a suite options one can pass to a QUESO environment. More...

#include <Defines.h>

Public Member Functions

Constructor/Destructor methods
 EnvOptionsValues ()
 Default constructor. More...
 
 EnvOptionsValues (const EnvOptionsValues &src)
 Copy constructor. More...
 
 ~EnvOptionsValues ()
 Destructor. More...
 
Set methods
EnvOptionsValuesoperator= (const EnvOptionsValues &rhs)
 Operator for copying the options of an environment. More...
 

Public Attributes

Attributes
unsigned int m_numSubEnvironments
 Number of sub-environments. More...
 
std::string m_subDisplayFileName
 Output filename for sub-screen writing. More...
 
bool m_subDisplayAllowAll
 Allows (or not) all sub-environments to write to output file. More...
 
bool m_subDisplayAllowInter0
 Allows (or not) all inter0 nodes to write to output file. More...
 
std::set< unsigned int > m_subDisplayAllowedSet
 Sub-environments that will write to output. More...
 
unsigned int m_displayVerbosity
 Verbosity. More...
 
unsigned int m_syncVerbosity
 Synchronized verbosity. More...
 
unsigned int m_checkingLevel
 Checking level. More...
 
std::string m_rngType
 Type of the random number generator. More...
 
int m_seed
 Seed of the random number generator. More...
 
std::string m_platformName
 Platform name. More...
 
std::string m_identifyingString
 Identifying string. More...
 
unsigned int m_numDebugParams
 Number of debug parameters. More...
 
std::vector< double > m_debugParams
 Debug parameters. More...
 

Private Member Functions

void copy (const EnvOptionsValues &src)
 Makes an exact copy of an existing EnvOptionsValues instance. More...
 

Detailed Description

This class provides a suite options one can pass to a QUESO environment.

QUESO expects the user to provide an input file with environment options for the library variables. If no input file, a collection of default values is assigned to some of the variables. The class EnvOptionsValues is responsible for this task.

Definition at line 105 of file Defines.h.

Constructor & Destructor Documentation

QUESO::EnvOptionsValues::EnvOptionsValues ( )

Default constructor.

Definition at line 37 of file EnvironmentOptions.C.

38  :
43 //m_subDisplayAllowedSet (),
53 {
54 }
#define UQ_ENV_CHECKING_LEVEL_ODV
std::string m_platformName
Platform name.
Definition: Defines.h:160
#define UQ_ENV_SUB_DISPLAY_ALLOW_ALL_ODV
#define UQ_ENV_PLATFORM_NAME_ODV
#define UQ_ENV_IDENTIFYING_STRING_ODV
unsigned int m_numDebugParams
Number of debug parameters.
Definition: Defines.h:166
#define UQ_ENV_NUM_SUB_ENVIRONMENTS_ODV
bool m_subDisplayAllowAll
Allows (or not) all sub-environments to write to output file.
Definition: Defines.h:134
bool m_subDisplayAllowInter0
Allows (or not) all inter0 nodes to write to output file.
Definition: Defines.h:137
#define UQ_ENV_NUM_DEBUG_PARAMS_ODV
unsigned int m_numSubEnvironments
Number of sub-environments.
Definition: Defines.h:128
int m_seed
Seed of the random number generator.
Definition: Defines.h:157
unsigned int m_syncVerbosity
Synchronized verbosity.
Definition: Defines.h:146
#define UQ_ENV_RNG_TYPE_ODV
#define UQ_ENV_SYNC_VERBOSITY_ODV
unsigned int m_checkingLevel
Checking level.
Definition: Defines.h:149
#define UQ_ENV_SUB_DISPLAY_ALLOW_INTER0_ODV
std::string m_rngType
Type of the random number generator.
Definition: Defines.h:152
unsigned int m_displayVerbosity
Verbosity.
Definition: Defines.h:143
std::string m_subDisplayFileName
Output filename for sub-screen writing.
Definition: Defines.h:131
std::string m_identifyingString
Identifying string.
Definition: Defines.h:163
#define UQ_ENV_DISPLAY_VERBOSITY_ODV
#define UQ_ENV_SEED_ODV
std::vector< double > m_debugParams
Debug parameters.
Definition: Defines.h:169
#define UQ_ENV_SUB_DISPLAY_FILE_NAME_ODV
QUESO::EnvOptionsValues::EnvOptionsValues ( const EnvOptionsValues src)

Copy constructor.

Definition at line 57 of file EnvironmentOptions.C.

References copy().

58 {
59  this->copy(src);
60 }
void copy(const EnvOptionsValues &src)
Makes an exact copy of an existing EnvOptionsValues instance.
QUESO::EnvOptionsValues::~EnvOptionsValues ( )

Destructor.

Definition at line 63 of file EnvironmentOptions.C.

64 {
65 }

Member Function Documentation

void QUESO::EnvOptionsValues::copy ( const EnvOptionsValues src)
private

Makes an exact copy of an existing EnvOptionsValues instance.

Definition at line 76 of file EnvironmentOptions.C.

References m_checkingLevel, m_debugParams, m_displayVerbosity, m_identifyingString, m_numDebugParams, m_numSubEnvironments, m_platformName, m_rngType, m_seed, m_subDisplayAllowAll, m_subDisplayAllowedSet, m_subDisplayAllowInter0, m_subDisplayFileName, and m_syncVerbosity.

Referenced by EnvOptionsValues(), and operator=().

77 {
78  m_numSubEnvironments = src.m_numSubEnvironments;
79  m_subDisplayFileName = src.m_subDisplayFileName;
80  m_subDisplayAllowAll = src.m_subDisplayAllowAll;
81  m_subDisplayAllowInter0 = src.m_subDisplayAllowInter0;
82  m_subDisplayAllowedSet = src.m_subDisplayAllowedSet;
83  m_displayVerbosity = src.m_displayVerbosity;
84  m_syncVerbosity = src.m_syncVerbosity;
85  m_checkingLevel = src.m_checkingLevel;
86  m_rngType = src.m_rngType;
87  m_seed = src.m_seed;
88  m_platformName = src.m_platformName;
89  m_identifyingString = src.m_identifyingString;
90  m_numDebugParams = src.m_numDebugParams;
91  m_debugParams = src.m_debugParams;
92 
93  return;
94 }
std::string m_platformName
Platform name.
Definition: Defines.h:160
unsigned int m_numDebugParams
Number of debug parameters.
Definition: Defines.h:166
bool m_subDisplayAllowAll
Allows (or not) all sub-environments to write to output file.
Definition: Defines.h:134
bool m_subDisplayAllowInter0
Allows (or not) all inter0 nodes to write to output file.
Definition: Defines.h:137
unsigned int m_numSubEnvironments
Number of sub-environments.
Definition: Defines.h:128
int m_seed
Seed of the random number generator.
Definition: Defines.h:157
unsigned int m_syncVerbosity
Synchronized verbosity.
Definition: Defines.h:146
std::set< unsigned int > m_subDisplayAllowedSet
Sub-environments that will write to output.
Definition: Defines.h:140
unsigned int m_checkingLevel
Checking level.
Definition: Defines.h:149
std::string m_rngType
Type of the random number generator.
Definition: Defines.h:152
unsigned int m_displayVerbosity
Verbosity.
Definition: Defines.h:143
std::string m_subDisplayFileName
Output filename for sub-screen writing.
Definition: Defines.h:131
std::string m_identifyingString
Identifying string.
Definition: Defines.h:163
std::vector< double > m_debugParams
Debug parameters.
Definition: Defines.h:169
EnvOptionsValues & QUESO::EnvOptionsValues::operator= ( const EnvOptionsValues rhs)

Operator for copying the options of an environment.

Definition at line 69 of file EnvironmentOptions.C.

References copy().

70 {
71  this->copy(rhs);
72  return *this;
73 }
void copy(const EnvOptionsValues &src)
Makes an exact copy of an existing EnvOptionsValues instance.

Member Data Documentation

unsigned int QUESO::EnvOptionsValues::m_checkingLevel
std::vector<double> QUESO::EnvOptionsValues::m_debugParams

Debug parameters.

Definition at line 169 of file Defines.h.

Referenced by copy().

unsigned int QUESO::EnvOptionsValues::m_displayVerbosity
std::string QUESO::EnvOptionsValues::m_identifyingString
unsigned int QUESO::EnvOptionsValues::m_numDebugParams

Number of debug parameters.

Definition at line 166 of file Defines.h.

Referenced by copy().

unsigned int QUESO::EnvOptionsValues::m_numSubEnvironments
std::string QUESO::EnvOptionsValues::m_platformName
std::string QUESO::EnvOptionsValues::m_rngType

Type of the random number generator.

Definition at line 152 of file Defines.h.

Referenced by copy(), QUESO::FullEnvironment::FullEnvironment(), QUESO::EnvironmentOptions::getMyOptionValues(), and QUESO::EnvironmentOptions::print().

int QUESO::EnvOptionsValues::m_seed

Seed of the random number generator.

If env_seed = -z, with z>=1, then each processor sets the seed to value MPI_RANK + z. It is crucial that +env_seed+ takes a {negative} value, otherwise all chain samples are going to be the same.

Definition at line 157 of file Defines.h.

Referenced by copy(), QUESO::FullEnvironment::FullEnvironment(), QUESO::EnvironmentOptions::getMyOptionValues(), and QUESO::EnvironmentOptions::print().

bool QUESO::EnvOptionsValues::m_subDisplayAllowAll

Allows (or not) all sub-environments to write to output file.

Definition at line 134 of file Defines.h.

Referenced by copy(), QUESO::FullEnvironment::FullEnvironment(), QUESO::EnvironmentOptions::getMyOptionValues(), and QUESO::EnvironmentOptions::print().

std::set<unsigned int> QUESO::EnvOptionsValues::m_subDisplayAllowedSet

Sub-environments that will write to output.

Definition at line 140 of file Defines.h.

Referenced by copy(), QUESO::FullEnvironment::FullEnvironment(), QUESO::EnvironmentOptions::getMyOptionValues(), and QUESO::EnvironmentOptions::print().

bool QUESO::EnvOptionsValues::m_subDisplayAllowInter0

Allows (or not) all inter0 nodes to write to output file.

Definition at line 137 of file Defines.h.

Referenced by copy(), QUESO::FullEnvironment::FullEnvironment(), and QUESO::EnvironmentOptions::getMyOptionValues().

std::string QUESO::EnvOptionsValues::m_subDisplayFileName
unsigned int QUESO::EnvOptionsValues::m_syncVerbosity

The documentation for this class was generated from the following files:

Generated on Thu Apr 23 2015 19:26:16 for queso-0.51.1 by  doxygen 1.8.5