25 #include <queso/BoostInputOptionsParser.h>
26 #include <queso/Environment.h>
28 #ifndef UQ_SIP_OPTIONS_H
29 #define UQ_SIP_OPTIONS_H
31 #undef UQ_SIP_READS_SOLVER_OPTION
33 #define UQ_SIP_HELP ""
34 #define UQ_SIP_FILENAME_FOR_NO_FILE "."
37 #define UQ_SIP_COMPUTE_SOLUTION_ODV 1
38 #define UQ_SIP_DATA_OUTPUT_FILE_NAME_ODV UQ_SIP_FILENAME_FOR_NO_FILE
39 #define UQ_SIP_DATA_OUTPUT_ALLOWED_SET_ODV ""
40 #ifdef UQ_SIP_READS_SOLVER_OPTION
41 #define UQ_SIP_SOLVER_ODV "bayes_mc" // Bayesian formula + Metropolis-Hastings
45 namespace program_options {
46 class options_description;
98 #ifdef UQ_SIP_READS_SOLVER_OPTION
99 std::string m_solverString;
112 #ifdef UQ_SIP_READS_SOLVER_OPTION
113 std::string m_option_solver;
121 friend std::ostream &
operator<<(std::ostream & os,
162 void print (std::ostream& os)
const;
170 void defineMyOptions (boost::program_options::options_description& optionsDesc)
const;
173 void getMyOptionValues(boost::program_options::options_description& optionsDesc);
182 #ifdef UQ_SIP_READS_SOLVER_OPTION
183 std::string m_option_solver;
192 #endif // UQ_SIP_OPTIONS_H
std::string m_option_help
std::string m_dataOutputFileName
BoostInputOptionsParser * m_parser
This class provides options for a Statistical Inverse Problem if no input file is available...
std::string m_option_computeSolution
std::string m_option_help
SipOptionsValues()
Default constructor.
SipOptionsValues & operator=(const SipOptionsValues &rhs)
Assignment operator; it copies rhs to this.
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Define my SIP options as the default options.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
friend std::ostream & operator<<(std::ostream &os, const SipOptionsValues &obj)
~StatisticalInverseProblemOptions()
Destructor.
StatisticalInverseProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
std::string m_option_computeSolution
std::string m_option_dataOutputFileName
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the option values of the SIP.
std::string m_option_dataOutputAllowedSet
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
void copy(const SipOptionsValues &src)
Copies the option values from src to this.
std::string m_option_dataOutputAllowedSet
virtual ~SipOptionsValues()
Destructor.
std::set< unsigned int > m_dataOutputAllowedSet
void print(std::ostream &os) const
It prints the option values.
const BaseEnvironment & m_env
std::string m_help
If this string is non-empty, options are print to the output file.
void scanOptionsValues()
It scans the option values from the options input file.
This class reads option values for a Statistical Inverse Problem from an input file.
std::string m_option_dataOutputFileName
boost::program_options::options_description * m_optionsDesc