queso-0.51.1
StatisticalForwardProblemOptions.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008,2009,2010,2011,2012,2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef UQ_SFP_OPTIONS_H
26 #define UQ_SFP_OPTIONS_H
27 
28 #include <queso/Environment.h>
29 //#include <queso/MonteCarloSGOptions.h>
30 
31 #undef UQ_SFP_READS_SOLVER_OPTION
32 
33 #define UQ_SFP_FILENAME_FOR_NO_FILE "."
34 
35 // _ODV = option default value
36 #define UQ_SFP_COMPUTE_SOLUTION_ODV 1
37 #define UQ_SFP_COMPUTE_COVARIANCES_ODV 1
38 #define UQ_SFP_COMPUTE_CORRELATIONS_ODV 1
39 #define UQ_SFP_DATA_OUTPUT_FILE_NAME_ODV UQ_SFP_FILENAME_FOR_NO_FILE
40 #define UQ_SFP_DATA_OUTPUT_ALLOWED_SET_ODV ""
41 #ifdef UQ_SFP_READS_SOLVER_OPTION
42 #define UQ_SFP_SOLVER_ODV "mc" // Monte Carlo
43 #endif
44 
45 namespace QUESO {
46 
58 {
59 public:
61 
62 
65 
67 
69 
73 
75 
79 
83  std::string m_dataOutputFileName;
84  std::set<unsigned int> m_dataOutputAllowedSet;
85 #ifdef UQ_SFP_READS_SOLVER_OPTION
86  std::string m_solverString;
87 #endif
88 
89  //McOptionsValues m_mcOptionsValues;
90 
91 private:
93  void copy(const SfpOptionsValues& src);
94 };
95 
108 {
109 public:
111 
112  StatisticalForwardProblemOptions(const BaseEnvironment& env, const char* prefix);
114 
116 
118  StatisticalForwardProblemOptions(const BaseEnvironment& env, const char* prefix, const SfpOptionsValues& alternativeOptionsValues);
119 
123 
125 
126  void scanOptionsValues();
128 
130  void print (std::ostream& os) const;
132 
134  std::string m_prefix;
135 
136 private:
138  void defineMyOptions (po::options_description& optionsDesc) const;
139 
141  void getMyOptionValues(po::options_description& optionsDesc);
142 
144 
145  po::options_description* m_optionsDesc;
146  std::string m_option_help;
152 #ifdef UQ_SFP_READS_SOLVER_OPTION
153  std::string m_option_solver;
154 #endif
155 };
157 std::ostream& operator<<(std::ostream& os, const StatisticalForwardProblemOptions& obj);
158 
159 } // End namespace QUESO
160 
161 #endif // UQ_SFP_OPTIONS_H
void copy(const SfpOptionsValues &src)
Copies the option values from src to this.
void scanOptionsValues()
It scans the option values from the options input file.
StatisticalForwardProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
This class provides options for a Statistical Forward Problem if no input file is available...
void defineMyOptions(po::options_description &optionsDesc) const
Define my SFP options as the default options.
This class reads option values for a Statistical Forward Problem from an input file.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:187
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
SfpOptionsValues()
Constructor/Destructor methods.
std::set< unsigned int > m_dataOutputAllowedSet
SfpOptionsValues & operator=(const SfpOptionsValues &rhs)
Assignment operator; it copies rhs to this.
void getMyOptionValues(po::options_description &optionsDesc)
Gets the option values of the SFP.
void print(std::ostream &os) const
It prints the option values.

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