queso-0.53.0
|
This class reads option values for a Statistical Inverse Problem from an input file. More...
#include <StatisticalInverseProblemOptions.h>
Public Member Functions | |
Constructor/Destructor methods | |
StatisticalInverseProblemOptions (const BaseEnvironment &env, const char *prefix) | |
Constructor: reads options from the input file. More... | |
StatisticalInverseProblemOptions (const BaseEnvironment &env, const char *prefix, const SipOptionsValues &alternativeOptionsValues) | |
Constructor: with alternative option values. More... | |
~StatisticalInverseProblemOptions () | |
Destructor. More... | |
I/O methods | |
void | scanOptionsValues () |
It scans the option values from the options input file. More... | |
void | print (std::ostream &os) const |
It prints the option values. More... | |
Public Attributes | |
SipOptionsValues | m_ov |
std::string | m_prefix |
Private Member Functions | |
void | defineMyOptions (boost::program_options::options_description &optionsDesc) const |
Define my SIP options as the default options. More... | |
void | getMyOptionValues (boost::program_options::options_description &optionsDesc) |
Gets the option values of the SIP. More... | |
Private Attributes | |
const BaseEnvironment & | m_env |
boost::program_options::options_description * | m_optionsDesc |
std::string | m_option_help |
std::string | m_option_computeSolution |
std::string | m_option_dataOutputFileName |
std::string | m_option_dataOutputAllowedSet |
This class reads option values for a Statistical Inverse Problem from an input file.
This class reads the option values for the Statistical Inverse Problem (SIP) from an input file provided by the user. The class expects the prefix '<prefix>_ip_'. For instance, if 'prefix' is 'foo_775_', then the constructor will read all options that begin with 'foo_775_ip_'. If the options request data to be written in the output file (MATLAB .m format only, for now), the user can run 'grep zeros <OUTPUT FILE NAME>' after the solution procedure ends in order to check which MATLAB variables are defined and set. The names of the variables are self explanatory.
Definition at line 139 of file StatisticalInverseProblemOptions.h.
QUESO::StatisticalInverseProblemOptions::StatisticalInverseProblemOptions | ( | const BaseEnvironment & | env, |
const char * | prefix | ||
) |
Constructor: reads options from the input file.
Definition at line 154 of file StatisticalInverseProblemOptions.C.
References m_env, QUESO::BaseEnvironment::optionsInputFileName(), queso_deprecated, and queso_require_not_equal_to_msg.
QUESO::StatisticalInverseProblemOptions::StatisticalInverseProblemOptions | ( | const BaseEnvironment & | env, |
const char * | prefix, | ||
const SipOptionsValues & | alternativeOptionsValues | ||
) |
Constructor: with alternative option values.
In this constructor, the input options are given by alternativeOptionsValues
, rather than the options input file
Definition at line 175 of file StatisticalInverseProblemOptions.C.
References m_env, m_prefix, QUESO::BaseEnvironment::optionsInputFileName(), queso_deprecated, queso_require_equal_to_msg, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::StatisticalInverseProblemOptions::~StatisticalInverseProblemOptions | ( | ) |
Destructor.
Definition at line 205 of file StatisticalInverseProblemOptions.C.
References m_optionsDesc, and queso_deprecated.
|
private |
Define my SIP options as the default options.
Definition at line 257 of file StatisticalInverseProblemOptions.C.
References m_option_computeSolution, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_help, queso_deprecated, UQ_SIP_COMPUTE_SOLUTION_ODV, UQ_SIP_DATA_OUTPUT_ALLOWED_SET_ODV, and UQ_SIP_DATA_OUTPUT_FILE_NAME_ODV.
Referenced by scanOptionsValues().
|
private |
Gets the option values of the SIP.
Definition at line 275 of file StatisticalInverseProblemOptions.C.
References QUESO::BaseEnvironment::allOptionsMap(), QUESO::SipOptionsValues::m_computeSolution, QUESO::SipOptionsValues::m_dataOutputAllowedSet, QUESO::SipOptionsValues::m_dataOutputFileName, m_env, m_option_computeSolution, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_help, m_ov, QUESO::MiscReadDoublesFromString(), queso_deprecated, and QUESO::BaseEnvironment::subDisplayFile().
Referenced by scanOptionsValues().
void QUESO::StatisticalInverseProblemOptions::print | ( | std::ostream & | os | ) | const |
It prints the option values.
Definition at line 238 of file StatisticalInverseProblemOptions.C.
References QUESO::SipOptionsValues::m_computeSolution, QUESO::SipOptionsValues::m_dataOutputAllowedSet, QUESO::SipOptionsValues::m_dataOutputFileName, m_option_computeSolution, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_ov, and queso_deprecated.
Referenced by QUESO::operator<<().
void QUESO::StatisticalInverseProblemOptions::scanOptionsValues | ( | ) |
It scans the option values from the options input file.
Definition at line 213 of file StatisticalInverseProblemOptions.C.
References defineMyOptions(), getMyOptionValues(), m_env, m_optionsDesc, m_prefix, queso_require_msg, QUESO::BaseEnvironment::scanInputFileForMyOptions(), and QUESO::BaseEnvironment::subDisplayFile().
|
private |
Definition at line 175 of file StatisticalInverseProblemOptions.h.
Referenced by getMyOptionValues(), scanOptionsValues(), and StatisticalInverseProblemOptions().
|
private |
Definition at line 179 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 181 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 180 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 178 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), and getMyOptionValues().
|
private |
Definition at line 177 of file StatisticalInverseProblemOptions.h.
Referenced by scanOptionsValues(), and ~StatisticalInverseProblemOptions().
SipOptionsValues QUESO::StatisticalInverseProblemOptions::m_ov |
Definition at line 165 of file StatisticalInverseProblemOptions.h.
Referenced by getMyOptionValues(), and print().
std::string QUESO::StatisticalInverseProblemOptions::m_prefix |
Definition at line 166 of file StatisticalInverseProblemOptions.h.
Referenced by scanOptionsValues(), and StatisticalInverseProblemOptions().