25 #include <queso/config_queso.h>
26 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
27 #include <queso/BoostInputOptionsParser.h>
28 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
30 #include <queso/Environment.h>
32 #ifndef UQ_SFP_OPTIONS_H
33 #define UQ_SFP_OPTIONS_H
35 #undef UQ_SFP_READS_SOLVER_OPTION
37 #define UQ_SFP_FILENAME_FOR_NO_FILE "."
40 #define UQ_SFP_HELP ""
41 #define UQ_SFP_COMPUTE_SOLUTION_ODV 1
42 #define UQ_SFP_COMPUTE_COVARIANCES_ODV 1
43 #define UQ_SFP_COMPUTE_CORRELATIONS_ODV 1
44 #define UQ_SFP_DATA_OUTPUT_FILE_NAME_ODV UQ_SFP_FILENAME_FOR_NO_FILE
45 #define UQ_SFP_DATA_OUTPUT_ALLOWED_SET_ODV ""
46 #ifdef UQ_SFP_READS_SOLVER_OPTION
47 #define UQ_SFP_SOLVER_ODV "mc" // Monte Carlo
50 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
52 namespace program_options {
53 class options_description;
56 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
104 #ifdef UQ_SFP_READS_SOLVER_OPTION
111 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
113 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
122 #ifdef UQ_SFP_READS_SOLVER_OPTION
131 friend std::ostream &
operator<<(std::ostream & os,
169 void print (std::ostream& os)
const;
176 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
177 void defineMyOptions (boost::program_options::options_description& optionsDesc)
const;
181 void getMyOptionValues(boost::program_options::options_description& optionsDesc);
182 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
186 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
188 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
195 #ifdef UQ_SFP_READS_SOLVER_OPTION
204 #endif // UQ_SFP_OPTIONS_H
SfpOptionsValues()
Constructor/Destructor methods.
std::string m_option_dataOutputFileName
std::string m_option_computeCorrelations
std::string m_option_computeCorrelations
This class reads option values for a Statistical Forward Problem from an input file.
std::string m_option_help
This class provides options for a Statistical Forward Problem if no input file is available...
const BaseEnvironment & m_env
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
bool m_computeCorrelations
std::string m_dataOutputFileName
std::string m_option_computeCovariances
std::string m_option_solver
BoostInputOptionsParser * m_parser
std::string m_help
If non-empty string, options and values are printed to the output file.
boost::program_options::options_description * m_optionsDesc
std::string m_option_solver
std::ostream & operator<<(std::ostream &os, const SequenceStatisticalOptions &obj)
void scanOptionsValues()
It scans the option values from the options input file.
void copy(const SfpOptionsValues &src)
Copies the option values from src to this.
std::string m_option_help
bool m_computeCovariances
std::set< unsigned int > m_dataOutputAllowedSet
std::string m_solverString
void print(std::ostream &os) const
It prints the option values.
virtual ~SfpOptionsValues()
Destructor.
std::string m_option_computeSolution
std::string m_option_dataOutputAllowedSet
std::string m_option_dataOutputFileName
StatisticalForwardProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Define my SFP options as the default options.
SfpOptionsValues & operator=(const SfpOptionsValues &rhs)
Assignment operator; it copies rhs to this.
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the option values of the SFP.
std::string m_option_computeCovariances
std::string m_option_computeSolution
friend std::ostream & operator<<(std::ostream &os, const SfpOptionsValues &obj)
~StatisticalForwardProblemOptions()
Destructor.
std::string m_option_dataOutputAllowedSet