Functions | |
| void | nidr_set_input_string (const char *) |
| void | run_dakota_parse (const char *dakota_input_file) |
| mode 1: parsing an input file. | |
| void | run_dakota_data () |
| mode 2: direct Data class instantiation. | |
| void | run_dakota_mixed (const char *dakota_input_file) |
| mode 3: mixed parsing and direct updating | |
| void | model_interface_plugins (Dakota::ProblemDescDB &problem_db) |
| int | main (int argc, char *argv[]) |
| A mock simulator main for testing DAKOTA in library mode. | |
| static void | my_callback_function (void *ptr) |
| void run_dakota_parse | ( | const char * | dakota_input_file | ) |
mode 1: parsing an input file.
This function parses from an input file to define the ProblemDescDB data.
| void run_dakota_data | ( | ) |
mode 2: direct Data class instantiation.
Rather than parsing from an input file, this function populates Data class objects directly using a minimal specification and relies on constructor defaults and post-processing in post_process() to fill in the rest.
| void run_dakota_mixed | ( | const char * | dakota_input_file | ) |
mode 3: mixed parsing and direct updating
This function showcases multiple features. For parsing, either an input file (dakota_input_file != NULL) or a default input string (dakota_input_file == NULL) are shown. This parsed input is then mixed with input from three sources: (1) input from a user-supplied callback function, (2) updates to the DB prior to Strategy instantiation, (3) updates directly to Iterators/Models following Strategy instantiation.
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
A mock simulator main for testing DAKOTA in library mode.
Uses alternative instantiation syntax as described in the library mode documentation within the Developers Manual. Tests several problem specification modes: (1) run_dakota_parse: reads all problem specification data from an input file (2) run_dakota_data: creates all problem specification from direct Data instance instantiations. (3) run_dakota_mixed: a mixture of input parsing (by file or default string) and direct data updates, where the data updates occur: (a) via the DB prior to Strategy instantiation, and (b) via Iterators/Models following Strategy instantiation. Usage: dakota_library_mode [-m] [dakota.in]
1.5.1