25 #include <queso/config_queso.h>
26 #include <queso/MLSamplingOptions.h>
27 #include <queso/Miscellaneous.h>
33 m_prefix ((std::string)(prefix) +
"ml_" ),
34 m_help (UQ_ML_SAMPLING_HELP),
35 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
36 m_restartOutput_levelPeriod (UQ_ML_SAMPLING_RESTART_OUTPUT_LEVEL_PERIOD_ODV ),
37 m_restartOutput_baseNameForFiles (UQ_ML_SAMPLING_RESTART_OUTPUT_BASE_NAME_FOR_FILES_ODV),
38 m_restartOutput_fileType (UQ_ML_SAMPLING_RESTART_OUTPUT_FILE_TYPE_ODV ),
39 m_restartInput_baseNameForFiles (UQ_ML_SAMPLING_RESTART_INPUT_BASE_NAME_FOR_FILES_ODV ),
40 m_restartInput_fileType (UQ_ML_SAMPLING_RESTART_INPUT_FILE_TYPE_ODV ),
42 m_restartInputFileName (UQ_ML_SAMPLING_RESTART_INPUT_FILE_NAME_ODV),
43 m_restartInputFileType (UQ_ML_SAMPLING_RESTART_INPUT_FILE_TYPE_ODV),
44 m_restartChainSize (UQ_ML_SAMPLING_RESTART_CHAIN_SIZE_ODV ),
49 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
52 m_option_help (m_prefix +
"help" ),
53 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
54 m_option_restartOutput_levelPeriod (m_prefix +
"restartOutput_levelPeriod" ),
55 m_option_restartOutput_baseNameForFiles(m_prefix +
"restartOutput_baseNameForFiles"),
56 m_option_restartOutput_fileType (m_prefix +
"restartOutput_fileType" ),
57 m_option_restartInput_baseNameForFiles (m_prefix +
"restartInput_baseNameForFiles" ),
58 m_option_restartInput_fileType (m_prefix +
"restartInput_fileType" ),
60 m_option_restartInputFileName (m_prefix +
"restartInputFileName"),
61 m_option_restartInputFileType (m_prefix +
"restartInputFileType"),
62 m_option_restartChainSize (m_prefix +
"restartChainSize" ),
64 m_option_dataOutputFileName (m_prefix +
"dataOutputFileName" ),
65 m_option_dataOutputAllowedSet (m_prefix +
"dataOutputAllowedSet")
67 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
69 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
86 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
101 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
116 unsigned int size =
m_env.
input().vector_variable_size(m_option_dataOutputAllowedSet);
117 for (
unsigned int i = 0; i <
size; i++) {
124 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
144 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
152 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
175 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
176 os << (*(obj.
m_parser)) << std::endl;
177 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
std::set< unsigned int > m_dataOutputAllowedSet
virtual ~MLSamplingOptions()
Destructor.
std::string m_option_restartInput_baseNameForFiles
std::string m_option_restartChainSize
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
void getOption(const std::string &name, T &value) const
Get option name from the parser and set value to the parsed value.
const BaseEnvironment & m_env
std::string m_option_help
std::ostream & operator<<(std::ostream &os, const SequenceStatisticalOptions &obj)
const GetPot & input() const
The GetPot input file parser.
MonteCarloSGOptions::MonteCarloSGOptions(const BaseEnvironment &env, const char *prefix queso_require_not_equal_to_msg)(m_env.optionsInputFileName(), std::string(""), std::string("this constructor is incompatible with the absence of an options input file"))
std::string m_option_restartOutput_baseNameForFiles
This class provides options for the Multilevel sequence generator if no input file is available...
void registerOption(const std::string &name, const T &defaultValue, const std::string &description)
Call this to register an option with the parser.
void print(std::ostream &os) const
It prints the option values.
std::string m_restartInput_fileType
Type of restart input file.
std::string m_restartInput_baseNameForFiles
Base name of restart input file.
std::string m_option_restartInputFileName
void scanInputFile()
This is the method that parses the input file.
void checkOptions(const BaseEnvironment *env)
std::string m_restartInputFileName
Name of restart input file.
std::string m_option_dataOutputFileName
unsigned int m_restartOutput_levelPeriod
Period of restart output file (level).
MLSamplingOptions(const BaseEnvironment &env, const char *prefix)
Default constructor.
unsigned int m_restartChainSize
Size of restart chain.
std::string m_restartOutput_baseNameForFiles
Base name of restart output file.
std::string m_option_dataOutputAllowedSet
std::string m_dataOutputFileName
Name of generic output file.
std::string m_option_restartInputFileType
std::string m_restartInputFileType
Type of restart input file.
std::string m_restartOutput_fileType
Type of restart output file.
BoostInputOptionsParser * m_parser
std::string m_option_restartOutput_levelPeriod
std::string m_option_restartInput_fileType
std::string m_help
If non-empty string, options and values are printed to the output file.
std::string m_option_restartOutput_fileType
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).