Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.3.0/v0.9.0/cpp
DOLFINx  0.3.0
DOLFINx C++ interface
subsystem.h
1 // Copyright (C) 2008-2020 Garth N. Wells
2 //
3 // This file is part of DOLFINx (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 namespace dolfinx::common
10 {
11 
15 
16 namespace subsystem
17 {
18 
20 void init_mpi();
21 
23 void init_mpi(int argc, char* argv[]);
24 
26 void init_logging(int argc, char* argv[]);
27 
30 void init_petsc();
31 
34 void init_petsc(int argc, char* argv[]);
35 
38 bool mpi_initialized();
39 
42 bool mpi_finalized();
43 
45 void finalize_mpi();
46 
48 void finalize_petsc();
49 
50 } // namespace subsystem
51 } // namespace dolfinx::common
bool mpi_finalized()
Check if MPI has been finalized (returns true if MPI has been finalised)
Definition: subsystem.cpp:129
bool mpi_initialized()
Check if MPI has been initialised (returns true if MPI has been initialised, even if it is later fina...
Definition: subsystem.cpp:119
void finalize_petsc()
Finalize PETSc.
Definition: subsystem.cpp:111
void finalize_mpi()
Finalize MPI.
Definition: subsystem.cpp:89
void init_logging(int argc, char *argv[])
Initialise loguru.
Definition: subsystem.cpp:46
void init_petsc()
Initialize PETSc (and SLEPc, if configured) without command-line arguments.
Definition: subsystem.cpp:67
void init_mpi()
Initialise MPI.
Definition: subsystem.cpp:22
Miscellaneous classes, functions and types.