Dakota  Version 6.23
Explore and Predict with Confidence
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
NIDRProblemDescDB Class Reference

The derived input file database utilizing the new IDR parser. More...

Inherits ProblemDescDB.

Public Member Functions

 NIDRProblemDescDB (int world_size, int world_rank)
 constructor
 
 ~NIDRProblemDescDB ()
 destructor
 
void derived_parse_inputs (const std::string_view dakota_input, const std::string_view parser_options, bool command_line_run) override
 parses the input file and populates the problem description database using NIDR. More...
 
void derived_broadcast () override
 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 () override
 perform any additional data post-processing
 
 KWH (iface_Real)
 
 KWH (iface_Rlit)
 
 KWH (iface_false)
 
 KWH (iface_ilit)
 
 KWH (iface_int)
 
 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_order)
 
 KWH (method_num_resplevs)
 
 KWH (method_piecewise)
 
 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_ivec)
 
 KWH (model_false)
 
 KWH (model_int)
 
 KWH (model_lit)
 
 KWH (model_order)
 
 KWH (model_shint)
 
 KWH (model_sizet)
 
 KWH (model_id_to_index_set)
 
 KWH (model_start)
 
 KWH (model_stop)
 
 KWH (model_str)
 
 KWH (model_strL)
 
 KWH (model_true)
 
 KWH (model_type)
 
 KWH (model_usharray)
 
 KWH (model_ushint)
 
 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_sizet)
 
 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 check_descriptor_format (const StringArray &labels)
 Validate format user-supplied descriptors.
 
static void check_descriptors_for_repeats (const StringArray &labels)
 Ensure no response descriptors are repeated.
 
static void check_descriptors_for_repeats (const StringArray &cd_labels, const StringArray &ddr_labels, const StringArray &ddsi_labels, const StringArray &ddss_labels, const StringArray &ddsr_labels, const StringArray &cs_labels, const StringArray &dsr_labels, const StringArray &dssi_labels, const StringArray &dsss_labels, const StringArray &dssr_labels, const StringArray &cau_labels, const StringArray &diau_labels, const StringArray &dsau_labels, const StringArray &drau_labels, const StringArray &ceu_labels, const StringArray &dieu_labels, const StringArray &dseu_labels, const StringArray &dreu_labels)
 Ensure no variable descriptors are repeated.
 
static void make_variable_defaults (std::list< DataVariables > *)
 Bounds and initial point check and inferred bounds generation. More...
 
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 NIDRProblemDescDBpDDBInstance
 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 &copy_files)
 tokenize and try to validate the presence of an analysis driver, potentially included in the linked or copied template files More...
 

Private Attributes

std::list< void * > VIL
 List of Var_Info pointers, one per Variables instance.
 

Detailed Description

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.

Member Function Documentation

◆ derived_parse_inputs()

void derived_parse_inputs ( const std::string_view  dakota_input,
const std::string_view  parser_options,
bool  command_line_run 
)
override

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.

References Dakota::abort_handler(), DataMethodRep::dlDetails, DataMethodRep::dlLib, NIDRProblemDescDB::nerr, NIDRProblemDescDB::pDDBInstance, and NIDRProblemDescDB::squawk().

◆ check_driver()

int check_driver ( const String &  an_driver,
const StringArray &  link_files,
const StringArray &  copy_files 
)
staticprivate

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().

◆ make_variable_defaults()

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().


The documentation for this class was generated from the following files: