$extrastylesheet
Dakota
Version 6.2
|
The derived input file database utilizing the new IDR parser. More...
Public Member Functions | |
NIDRProblemDescDB (ParallelLibrary ¶llel_lib) | |
constructor | |
~NIDRProblemDescDB () | |
destructor | |
void | derived_parse_inputs (const ProgramOptions &prog_opts) |
parses the input file and populates the problem description database using NIDR. | |
void | derived_broadcast () |
perform any data processing that must be coordinated with DB buffer broadcasting (performed prior to broadcasting the DB buffer on rank 0 and after receiving the DB buffer on other processor ranks) | |
void | derived_post_process () |
perform any additional data post-processing | |
KWH (iface_Real) | |
KWH (iface_Rlit) | |
KWH (iface_false) | |
KWH (iface_ilit) | |
KWH (iface_pint) | |
KWH (iface_lit) | |
KWH (iface_start) | |
KWH (iface_stop) | |
KWH (iface_str) | |
KWH (iface_str2D) | |
KWH (iface_strL) | |
KWH (iface_true) | |
KWH (iface_type) | |
KWH (method_Ii) | |
KWH (method_Real) | |
KWH (method_Real01) | |
KWH (method_RealDL) | |
KWH (method_RealLlit) | |
KWH (method_Realp) | |
KWH (method_Realz) | |
KWH (method_Ri) | |
KWH (method_false) | |
KWH (method_szarray) | |
KWH (method_ilit2) | |
KWH (method_ilit2p) | |
KWH (method_int) | |
KWH (method_ivec) | |
KWH (method_lit) | |
KWH (method_litc) | |
KWH (method_liti) | |
KWH (method_litp) | |
KWH (method_litr) | |
KWH (method_litz) | |
KWH (method_nnint) | |
KWH (method_num_resplevs) | |
KWH (method_piecewise) | |
KWH (method_pint) | |
KWH (method_pintz) | |
KWH (method_resplevs) | |
KWH (method_resplevs01) | |
KWH (method_shint) | |
KWH (method_sizet) | |
KWH (method_slit2) | |
KWH (method_start) | |
KWH (method_stop) | |
KWH (method_str) | |
KWH (method_strL) | |
KWH (method_true) | |
KWH (method_tr_final) | |
KWH (method_type) | |
KWH (method_usharray) | |
KWH (method_ushint) | |
KWH (method_utype) | |
KWH (method_augment_utype) | |
KWH (method_utype_lit) | |
KWH (model_Real) | |
KWH (model_RealDL) | |
KWH (model_false) | |
KWH (model_int) | |
KWH (model_intsetm1) | |
KWH (model_lit) | |
KWH (model_order) | |
KWH (model_pint) | |
KWH (model_shint) | |
KWH (model_start) | |
KWH (model_stop) | |
KWH (model_str) | |
KWH (model_strL) | |
KWH (model_true) | |
KWH (model_type) | |
KWH (model_utype) | |
KWH (model_augment_utype) | |
KWH (resp_RealDL) | |
KWH (resp_RealL) | |
KWH (resp_false) | |
KWH (resp_intset) | |
KWH (resp_ivec) | |
KWH (resp_lit) | |
KWH (resp_sizet) | |
KWH (resp_start) | |
KWH (resp_stop) | |
KWH (resp_str) | |
KWH (resp_strL) | |
KWH (resp_true) | |
KWH (resp_utype) | |
KWH (resp_augment_utype) | |
KWH (env_int) | |
KWH (env_start) | |
KWH (env_str) | |
KWH (env_strL) | |
KWH (env_true) | |
KWH (env_utype) | |
KWH (env_augment_utype) | |
KWH (var_RealLb) | |
KWH (var_RealUb) | |
KWH (var_IntLb) | |
KWH (var_categorical) | |
KWH (var_caulbl) | |
KWH (var_dauilbl) | |
KWH (var_dauslbl) | |
KWH (var_daurlbl) | |
KWH (var_ceulbl) | |
KWH (var_deuilbl) | |
KWH (var_deuslbl) | |
KWH (var_deurlbl) | |
KWH (var_pintz) | |
KWH (var_start) | |
KWH (var_stop) | |
KWH (var_str) | |
KWH (var_strL) | |
KWH (var_true) | |
KWH (var_newiarray) | |
KWH (var_newsarray) | |
KWH (var_newivec) | |
KWH (var_newrvec) | |
KWH (var_ivec) | |
KWH (var_svec) | |
KWH (var_rvec) | |
KWH (var_type) | |
Static Public Member Functions | |
static void | botch (const char *fmt,...) |
print and error message and immediately abort | |
static void | check_variables (std::list< DataVariables > *) |
check each node in a list of DataVariables, first mapping DataVariables members back to flat NIDR arrays if needed. | |
static void | check_responses (std::list< DataResponses > *) |
static void | make_variable_defaults (std::list< DataVariables > *) |
Bounds and initial point check and inferred bounds generation. | |
static void | make_response_defaults (std::list< DataResponses > *) |
static void | squawk (const char *fmt,...) |
print an error message and increment nerr, but continue | |
static void | warn (const char *fmt,...) |
print a warning | |
Static Public Attributes | |
static NIDRProblemDescDB * | pDDBInstance |
Pointer to the active object instance used within the static kwhandler functions in order to avoid the need for static data. Only initialized when parsing an input file; will be NULL for cases of direct DB population only. | |
static int | nerr = 0 |
number of parse error encountered | |
Static Private Member Functions | |
static void | check_variables_node (void *v) |
check a single variables node; input argument v is Var_Info* | |
static int | check_driver (const String &an_driver, const StringArray &link_files, const StringArray ©_files) |
tokenize and try to validate the presence of an analysis driver, potentially included in the linked or copied template files | |
Private Attributes | |
std::list< void * > | VIL |
List of Var_Info pointers, one per Variables instance. |
The derived input file database utilizing the new IDR parser.
The NIDRProblemDescDB class is derived from ProblemDescDB for use by the NIDR parser in processing DAKOTA input file data. For information on modifying the NIDR input parsing procedures, refer to Dakota/docs/Dev_Spec_Change.dox. For more on the parsing technology, see "Specifying and Reading Program Input with NIDR" by David M. Gay (report SAND2008-2261P, which is available in PDF form as http://dakota.sandia.gov/papers/nidr08.pdf). Source for the routines declared herein is NIDRProblemDescDB.cpp, in which most routines are so short that a description seems unnecessary.
void derived_parse_inputs | ( | const ProgramOptions & | prog_opts | ) | [virtual] |
parses the input file and populates the problem description database using NIDR.
Parse the input file using the Input Deck Reader (IDR) parsing system. IDR populates the IDRProblemDescDB object with the input file data.
Reimplemented from ProblemDescDB.
References Dakota::abort_handler(), NIDRProblemDescDB::botch(), ProblemDescDB::dataMethodList, DataMethodRep::dlDetails, DataMethodRep::dlLib, ProgramOptions::input_file(), ProgramOptions::input_string(), NIDRProblemDescDB::nerr, ProblemDescDB::parallel_library(), ProgramOptions::parser_options(), NIDRProblemDescDB::pDDBInstance, and NIDRProblemDescDB::squawk().
int check_driver | ( | const String & | an_driver, |
const StringArray & | link_files, | ||
const StringArray & | copy_files | ||
) | [static, private] |
tokenize and try to validate the presence of an analysis driver, potentially included in the linked or copied template files
returns 1 if not found, 2 if found, but not executable, 0 if found (no error) in case we want to return to error on not found...
References WorkdirHelper::find_driver(), NIDRProblemDescDB::squawk(), WorkdirHelper::tokenize_driver(), NIDRProblemDescDB::warn(), and WorkdirHelper::which().
void make_variable_defaults | ( | std::list< DataVariables > * | dvl | ) | [static] |
Bounds and initial point check and inferred bounds generation.
Size arrays for contiguous storage of aggregated uncertain types. For each variable type, call Vgen_* to generate inferred bounds and initial point, repairing initial if needed.
size the aggregate arrays for uncertain (design and state are stored separately
References Dakota::DesignAndStateLabelsCheck, NIDRProblemDescDB::squawk(), Dakota::var_mp_drange, Dakota::VLUncertainInt, Dakota::VLUncertainReal, and Dakota::VLUncertainStr.
Referenced by NIDRProblemDescDB::derived_post_process().