Dakota  Version
Explore and Predict with Confidence
Functions
library_split.cpp File Reference

file containing a mock simulator main for testing DAKOTA in library mode on a split communicator More...

Functions

void manage_mpi (MPI_Comm &my_comm, int &color)
 Split MPI_COMM_WORLD, returning the comm and color.
 
void gen_dakota_input (const int &color, std::string &input)
 Return the appropriate DAKOTA input based on color (1 or 2)
 
void run_dakota (const MPI_Comm &comm, const std::string &input, const int &color)
 Launch DAKOTA on passed communicator, tagging output/error with color.
 
void collect_results ()
 Wait for and collect results from DAKOTA runs.
 
int main (int argc, char *argv[])
 Driver routine for testing library mode with partitioned MPI_Comm. This test fixture requires MPI and can be run on 3–8 processors.
 

Detailed Description

file containing a mock simulator main for testing DAKOTA in library mode on a split communicator