25 #ifndef UQ_MULTI_LEVEL_SAMPLING_OPTIONS_H
26 #define UQ_MULTI_LEVEL_SAMPLING_OPTIONS_H
28 #include <queso/Environment.h>
29 #include <queso/MLSamplingLevelOptions.h>
31 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
32 #include <queso/BoostInputOptionsParser.h>
33 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
35 #define UQ_ML_SAMPLING_FILENAME_FOR_NO_FILE "."
39 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
41 #define UQ_ML_SAMPLING_HELP ""
42 #define UQ_ML_SAMPLING_RESTART_OUTPUT_LEVEL_PERIOD_ODV 0
43 #define UQ_ML_SAMPLING_RESTART_OUTPUT_BASE_NAME_FOR_FILES_ODV UQ_ML_SAMPLING_FILENAME_FOR_NO_FILE
44 #define UQ_ML_SAMPLING_RESTART_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
45 #define UQ_ML_SAMPLING_RESTART_INPUT_BASE_NAME_FOR_FILES_ODV UQ_ML_SAMPLING_FILENAME_FOR_NO_FILE
46 #define UQ_ML_SAMPLING_RESTART_INPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
50 #define UQ_ML_SAMPLING_RESTART_INPUT_FILE_NAME_ODV UQ_ML_SAMPLING_FILENAME_FOR_NO_FILE
51 #define UQ_ML_SAMPLING_RESTART_INPUT_FILE_TYPE_ODV UQ_ML_SAMPLING_FILENAME_FOR_NO_FILE
52 #define UQ_ML_SAMPLING_RESTART_CHAIN_SIZE_ODV 100
56 #define UQ_ML_SAMPLING_DATA_OUTPUT_FILE_NAME_ODV UQ_ML_SAMPLING_FILENAME_FOR_NO_FILE
57 #define UQ_ML_SAMPLING_DATA_OUTPUT_ALLOW_ALL_ODV 0
58 #define UQ_ML_SAMPLING_DATA_OUTPUT_ALLOWED_SET_ODV ""
87 void print (std::ostream& os)
const;
97 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
132 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
134 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
137 #ifdef ML_CODE_HAS_NEW_RESTART_CAPABILITY
154 friend std::ostream &
operator<<(std::ostream & os,
161 #endif // UQ_MULTI_LEVEL_SAMPLING_OPTIONS_H
std::set< unsigned int > m_dataOutputAllowedSet
virtual ~MLSamplingOptions()
Destructor.
std::string m_option_restartInput_baseNameForFiles
std::string m_option_restartChainSize
friend std::ostream & operator<<(std::ostream &os, const MLSamplingOptions &obj)
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
const BaseEnvironment & m_env
std::string m_option_help
std::string m_option_restartOutput_baseNameForFiles
bool m_dataOutputAllowAll
subEnvs that will write to generic output file
This class provides options for the Multilevel sequence generator if no input file is available...
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 checkOptions(const BaseEnvironment *env)
std::string m_option_dataOutputAllowAll
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::string m_prefix
Class prefix. (ml)