25 #include <queso/BoostInputOptionsParser.h>
26 #include <queso/Environment.h>
28 #ifndef UQ_SFP_OPTIONS_H
29 #define UQ_SFP_OPTIONS_H
31 #undef UQ_SFP_READS_SOLVER_OPTION
33 #define UQ_SFP_FILENAME_FOR_NO_FILE "."
36 #define UQ_SFP_HELP ""
37 #define UQ_SFP_COMPUTE_SOLUTION_ODV 1
38 #define UQ_SFP_COMPUTE_COVARIANCES_ODV 1
39 #define UQ_SFP_COMPUTE_CORRELATIONS_ODV 1
40 #define UQ_SFP_DATA_OUTPUT_FILE_NAME_ODV UQ_SFP_FILENAME_FOR_NO_FILE
41 #define UQ_SFP_DATA_OUTPUT_ALLOWED_SET_ODV ""
42 #ifdef UQ_SFP_READS_SOLVER_OPTION
43 #define UQ_SFP_SOLVER_ODV "mc" // Monte Carlo
47 namespace program_options {
48 class options_description;
98 #ifdef UQ_SFP_READS_SOLVER_OPTION
99 std::string m_solverString;
114 #ifdef UQ_SFP_READS_SOLVER_OPTION
115 std::string m_option_solver;
123 friend std::ostream &
operator<<(std::ostream & os,
161 void print (std::ostream& os)
const;
169 void defineMyOptions (boost::program_options::options_description& optionsDesc)
const;
172 void getMyOptionValues(boost::program_options::options_description& optionsDesc);
183 #ifdef UQ_SFP_READS_SOLVER_OPTION
184 std::string m_option_solver;
192 #endif // UQ_SFP_OPTIONS_H
std::string m_option_computeSolution
StatisticalForwardProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
~StatisticalForwardProblemOptions()
Destructor.
void copy(const SfpOptionsValues &src)
Copies the option values from src to this.
friend std::ostream & operator<<(std::ostream &os, const SfpOptionsValues &obj)
bool m_computeCorrelations
std::string m_option_help
std::string m_option_dataOutputFileName
std::string m_option_computeCovariances
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::set< unsigned int > m_dataOutputAllowedSet
This class reads option values for a Statistical Forward Problem from an input file.
This class provides options for a Statistical Forward Problem if no input file is available...
boost::program_options::options_description * m_optionsDesc
const BaseEnvironment & m_env
std::string m_option_help
std::string m_option_computeCorrelations
void print(std::ostream &os) const
It prints the option values.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
SfpOptionsValues & operator=(const SfpOptionsValues &rhs)
Assignment operator; it copies rhs to this.
std::string m_dataOutputFileName
std::string m_option_dataOutputAllowedSet
SfpOptionsValues()
Constructor/Destructor methods.
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the option values of the SFP.
std::string m_option_computeCorrelations
std::string m_help
If non-empty string, options and values are printed to the output file.
std::string m_option_computeSolution
bool m_computeCovariances
BoostInputOptionsParser * m_parser
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Define my SFP options as the default options.
std::string m_option_dataOutputAllowedSet
std::string m_option_dataOutputFileName
virtual ~SfpOptionsValues()
Destructor.
std::string m_option_computeCovariances
void scanOptionsValues()
It scans the option values from the options input file.