25 #include <boost/program_options.hpp> 
   27 #include <queso/SimulationModelOptions.h> 
   28 #include <queso/Miscellaneous.h> 
   50     m_option_help(m_prefix + 
"help"),
 
   51     m_option_dataOutputFileName(m_prefix + 
"dataOutputFileName"),
 
   52     m_option_dataOutputAllowAll(m_prefix + 
"dataOutputAllowAll"),
 
   53     m_option_dataOutputAllowedSet(m_prefix + 
"dataOutputAllowedSet"),
 
   54     m_option_p_eta(m_prefix + 
"p_eta"),
 
   55     m_option_zeroRelativeSingularValue(m_prefix + 
"zeroRelativeSingularValue"),
 
   56     m_option_cdfThresholdForPEta(m_prefix + 
"cdfThresholdForPEta"),
 
   57     m_option_a_w(m_prefix + 
"a_w"),
 
   58     m_option_b_w(m_prefix + 
"b_w"),
 
   59     m_option_a_rho_w(m_prefix + 
"a_rho_w"),
 
   60     m_option_b_rho_w(m_prefix + 
"b_rho_w"),
 
   61     m_option_a_eta(m_prefix + 
"a_eta"),
 
   62     m_option_b_eta(m_prefix + 
"b_eta"),
 
   63     m_option_a_s(m_prefix + 
"a_s"),
 
   64     m_option_b_s(m_prefix + 
"b_s")
 
   71     m_prefix((std::string)(prefix) + 
"sm_"),
 
   87     m_option_help(m_prefix + 
"help"),
 
   88     m_option_dataOutputFileName(m_prefix + 
"dataOutputFileName"),
 
   89     m_option_dataOutputAllowAll(m_prefix + 
"dataOutputAllowAll"),
 
   90     m_option_dataOutputAllowedSet(m_prefix + 
"dataOutputAllowedSet"),
 
   91     m_option_p_eta(m_prefix + 
"p_eta"),
 
   92     m_option_zeroRelativeSingularValue(m_prefix + 
"zeroRelativeSingularValue"),
 
   93     m_option_cdfThresholdForPEta(m_prefix + 
"cdfThresholdForPEta"),
 
   94     m_option_a_w(m_prefix + 
"a_w"),
 
   95     m_option_b_w(m_prefix + 
"b_w"),
 
   96     m_option_a_rho_w(m_prefix + 
"a_rho_w"),
 
   97     m_option_b_rho_w(m_prefix + 
"b_rho_w"),
 
   98     m_option_a_eta(m_prefix + 
"a_eta"),
 
   99     m_option_b_eta(m_prefix + 
"b_eta"),
 
  100     m_option_a_s(m_prefix + 
"a_s"),
 
  101     m_option_b_s(m_prefix + 
"b_s")
 
  280   m_prefix                          ((std::string)(prefix) + 
"sm_"),
 
  282   m_optionsDesc                     (new boost::program_options::options_description(
"Simulation model options")),
 
  283   m_option_help                     (m_prefix + 
"help"                     ),
 
  284   m_option_dataOutputFileName       (m_prefix + 
"dataOutputFileName"       ),
 
  285   m_option_dataOutputAllowAll       (m_prefix + 
"dataOutputAllowAll"       ),
 
  286   m_option_dataOutputAllowedSet     (m_prefix + 
"dataOutputAllowedSet"     ),
 
  287   m_option_p_eta                    (m_prefix + 
"p_eta"                    ),
 
  288   m_option_zeroRelativeSingularValue(m_prefix + 
"zeroRelativeSingularValue"),
 
  289   m_option_cdfThresholdForPEta      (m_prefix + 
"cdfThresholdForPEta"      ),
 
  290   m_option_a_w                      (m_prefix + 
"a_w"                      ),
 
  291   m_option_b_w                      (m_prefix + 
"b_w"                      ),
 
  292   m_option_a_rho_w                  (m_prefix + 
"a_rho_w"                  ),
 
  293   m_option_b_rho_w                  (m_prefix + 
"b_rho_w"                  ),
 
  294   m_option_a_eta                    (m_prefix + 
"a_eta"                    ),
 
  295   m_option_b_eta                    (m_prefix + 
"b_eta"                    ),
 
  296   m_option_a_s                      (m_prefix + 
"a_s"                      ),
 
  297   m_option_b_s                      (m_prefix + 
"b_s"                      )
 
  307   m_ov                              (alternativeOptionsValues),
 
  308   m_prefix                          ((std::string)(prefix) + 
"sm_"),
 
  310   m_optionsDesc                     (NULL),
 
  311   m_option_help                     (m_prefix + 
"help"                     ),
 
  312   m_option_dataOutputFileName       (m_prefix + 
"dataOutputFileName"       ),
 
  313   m_option_dataOutputAllowAll       (m_prefix + 
"dataOutputAllowAll"       ),
 
  314   m_option_dataOutputAllowedSet     (m_prefix + 
"dataOutputAllowedSet"     ),
 
  315   m_option_p_eta                    (m_prefix + 
"p_eta"                    ),
 
  316   m_option_zeroRelativeSingularValue(m_prefix + 
"zeroRelativeSingularValue"),
 
  317   m_option_cdfThresholdForPEta      (m_prefix + 
"cdfThresholdForPEta"      ),
 
  318   m_option_a_w                      (m_prefix + 
"a_w"                      ),
 
  319   m_option_b_w                      (m_prefix + 
"b_w"                      ),
 
  320   m_option_a_rho_w                  (m_prefix + 
"a_rho_w"                  ),
 
  321   m_option_b_rho_w                  (m_prefix + 
"b_rho_w"                  ),
 
  322   m_option_a_eta                    (m_prefix + 
"a_eta"                    ),
 
  323   m_option_b_eta                    (m_prefix + 
"b_eta"                    ),
 
  324   m_option_a_s                      (m_prefix + 
"a_s"                      ),
 
  325   m_option_b_s                      (m_prefix + 
"b_s"                      )
 
  333                             << 
": after setting values of options with prefix '" << 
m_prefix 
  334                             << 
"', state of object is:" 
  364                             << 
": after reading values of options with prefix '" << 
m_prefix 
  365                             << 
"', state of  object is:" 
  378   optionsDesc.add_options()
 
  379     (
m_option_help.c_str(),                                                                                                                      
"produce help message for simulation model options")
 
  422     std::vector<double> tmpAllow(0,0.);
 
  426     if (tmpAllow.size() > 0) {
 
  427       for (
unsigned int i = 0; i < tmpAllow.size(); ++i) {
 
std::string m_option_dataOutputAllowedSet
 
boost::program_options::options_description * m_optionsDesc
 
BoostInputOptionsParser * m_parser
 
#define UQ_SIMULATION_MODEL_A_RHO_W_ODV
 
bool m_dataOutputAllowAll
 
#define UQ_SIMULATION_MODEL_ZERO_RELATIVE_SINGULAR_VALUE_ODV
 
#define UQ_SIMULATION_MODEL_CDF_THRESHOLD_FOR_P_ETA_ODV
 
#define UQ_SIMULATION_MODEL_P_ETA_ODV
 
virtual ~SmOptionsValues()
 
std::string m_option_b_rho_w
 
std::string m_option_dataOutputAllowedSet
 
std::string m_option_a_rho_w
 
std::string m_option_cdfThresholdForPEta
 
void scanInputFileForMyOptions(const boost::program_options::options_description &optionsDesc) const 
This method scans the input file provided by the user to QUESO. 
 
std::string m_option_a_rho_w
 
std::string m_option_dataOutputFileName
 
void copy(const SmOptionsValues &src)
 
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOWED_SET_ODV
 
#define UQ_SIMULATION_MODEL_B_ETA_ODV
 
SimulationModelOptions(const BaseEnvironment &env, const char *prefix)
 
void defineMyOptions(boost::program_options::options_description &optionsDesc) const 
 
SmOptionsValues & operator=(const SmOptionsValues &rhs)
 
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOW_ALL_ODV
 
#define queso_require_not_equal_to_msg(expr1, expr2, msg)
 
#define queso_deprecated()
 
std::string m_option_dataOutputFileName
 
std::string m_option_b_rho_w
 
std::string m_option_zeroRelativeSingularValue
 
double m_cdfThresholdForPEta
 
std::string m_option_zeroRelativeSingularValue
 
boost::program_options::variables_map & allOptionsMap() const 
 
#define queso_require_msg(asserted, msg)
 
#define queso_require_equal_to_msg(expr1, expr2, msg)
 
#define UQ_SIMULATION_MODEL_A_S_ODV
 
std::string m_option_dataOutputAllowAll
 
#define UQ_SIMULATION_MODEL_A_W_ODV
 
std::string m_option_help
 
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
 
std::string m_option_b_eta
 
void print(std::ostream &os) const 
 
std::string optionsInputFileName() const 
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
 
#define UQ_SIMULATION_MODEL_B_RHO_W_ODV
 
void scanInputFile()
This is the method that parses the input file. 
 
const BaseEnvironment & m_env
 
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
 
std::ofstream * subDisplayFile() const 
Access function for m_subDisplayFile (displays file on stream). 
 
#define UQ_SIMULATION_MODEL_A_ETA_ODV
 
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
 
std::string m_option_b_eta
 
unsigned int subId() const 
Access function to the number of each sub-environment Id: m_subId. 
 
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser. 
 
std::string m_dataOutputFileName
 
std::string m_option_a_eta
 
std::string m_option_p_eta
 
std::string m_option_cdfThresholdForPEta
 
#define UQ_SIMULATION_MODEL_B_W_ODV
 
~SimulationModelOptions()
 
double m_zeroRelativeSingularValue
 
std::set< unsigned int > m_dataOutputAllowedSet
 
std::string m_option_help
 
std::string m_option_a_eta
 
#define UQ_SIMULATION_MODEL_B_S_ODV
 
std::string m_option_p_eta
 
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_FILE_NAME_ODV
 
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value. 
 
std::string m_option_dataOutputAllowAll
 
void MiscReadDoublesFromString(const std::string &inputString, std::vector< double > &outputDoubles)