DOLFIN-X
DOLFIN-X C++ interface
|
33 static int init_mpi(
int argc,
char* argv[],
int required_thread_level);
44 static void init_petsc(
int argc,
char* argv[]);
71 const char* file, PetscErrorCode n, PetscErrorType p,
72 const char* mess,
void* ctx);
85 static void finalize_mpi();
88 static void finalize_petsc();
91 bool petsc_initialized;
static SubSystemsManager & singleton()
Singleton instance. Calling this ensures singleton instance of SubSystemsManager is initialized accor...
Definition: SubSystemsManager.cpp:27
std::string petsc_err_msg
Last recorded PETSc error message.
Definition: SubSystemsManager.h:75
static bool mpi_finalized()
Check if MPI has been finalized (returns true if MPI has been finalised)
Definition: SubSystemsManager.cpp:193
static PetscErrorCode PetscDolfinErrorHandler(MPI_Comm comm, int line, const char *fun, const char *file, PetscErrorCode n, PetscErrorType p, const char *mess, void *ctx)
PETSc error handler. Logs everything known to DOLFINX logging system (with level TRACE) and stores th...
Definition: SubSystemsManager.cpp:200
static bool mpi_initialized()
Check if MPI has been initialised (returns true if MPI has been initialised, even if it is later fina...
Definition: SubSystemsManager.cpp:182
This is a singleton class which manages the initialisation and finalisation of various sub systems,...
Definition: SubSystemsManager.h:18
Miscellaneous classes, functions and types.
static void init_petsc()
Initialize PETSc without command-line arguments.
Definition: SubSystemsManager.cpp:79
static bool responsible_mpi()
Return true if DOLFINX initialised MPI (and is therefore responsible for finalization)
Definition: SubSystemsManager.cpp:130
static void init_mpi()
Initialise MPI.
Definition: SubSystemsManager.cpp:41
static void init_logging(int argc, char *argv[])
Initialise loguru.
Definition: SubSystemsManager.cpp:72
static void finalize()
Finalize subsystems. This will be called by the destructor, but in special cases it may be necessary ...
Definition: SubSystemsManager.cpp:123
static bool responsible_petsc()
Return true if DOLFINX initialised PETSc (and is therefore responsible for finalization)
Definition: SubSystemsManager.cpp:132