18 #ifndef __SUB_SYSTEMS_MANAGER_H 19 #define __SUB_SYSTEMS_MANAGER_H 49 static int init_mpi(
int argc,
char* argv[],
int required_thread_level);
57 static void init_petsc(
int argc,
char* argv[]);
84 MPI_Comm comm,
int line,
const char *fun,
const char *file,
85 PetscErrorCode n, PetscErrorType p,
const char *mess,
void *ctx);
100 static void finalize_mpi();
103 static void finalize_petsc();
106 bool petsc_initialized;
Definition: SubSystemsManager.h:33
static void init_petsc()
Initialize PETSc without command-line arguments.
Definition: SubSystemsManager.cpp:125
static bool mpi_initialized()
Definition: SubSystemsManager.cpp:260
static PetscErrorCode PetscDolfinErrorHandler(MPI_Comm comm, int line, const char *fun, const char *file, PetscErrorCode n, PetscErrorType p, const char *mess, void *ctx)
Definition: SubSystemsManager.cpp:289
std::string petsc_err_msg
Last recorded PETSc error message.
Definition: SubSystemsManager.h:89
static SubSystemsManager & singleton()
Definition: SubSystemsManager.cpp:46
static bool mpi_finalized()
Definition: SubSystemsManager.cpp:276
static bool responsible_mpi()
Definition: SubSystemsManager.cpp:198
static bool responsible_petsc()
Definition: SubSystemsManager.cpp:203
static void init_mpi()
Initialise MPI.
Definition: SubSystemsManager.cpp:63
static void finalize()
Definition: SubSystemsManager.cpp:191