6 #ifndef _ENSEMBLE_SIM_H_ 7 #define _ENSEMBLE_SIM_H_ 13 #define _ENSEMBLE_SIM_INP_FNAME_ "simulation.inp" 49 printf(
"Error: CleanUp() returned with status %d on process %d.\n",
113 for (
int ns = 0; ns <
m_nsims; ns++) {
117 fprintf(stderr,
"Error in EnsembleSimulations::InitializePhysicsData()\n");
118 fprintf(stderr,
" InitializePhysicsData returned with error code %d on rank %d.\n",
119 retval,
m_sims[ns].mpi.rank);
163 for (
int n = 0; n <
m_nsims; n++) {
164 MPI_Comm_dup(MPI_COMM_WORLD, &(
m_sims[n].mpi.world));
174 for (
int n = 0; n <
m_nsims; n++) {
175 m_sims[n].solver.use_petscTS = a_flag;
Class describing ensemble simulations.
Base class for simulation and declarations for C functions.
void WriteErrors(double a_wt_solver, double a_wt_total)
void usePetscTS(PetscBool a_flag)
Base class for a simulation.
std::vector< SimulationObject > m_sims
void SimWriteErrors(void *, int, int, double, double)
int WriteInputs(void *, int, int)
int InitializeBoundaries()
int InitializePhysicsData()
int InitializeImmersedBoundaries()