openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Namespaces | Macros | Functions
backend.h File Reference

Starts and stops the linear algebra backend the flavor parameter selects. More...

#include <cstdio>
#include <mpi.h>
Include dependency graph for backend.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 opencarp
 

Macros

#define DELIMIT_OPTS   "+"
 separates the openCARP options from the PETSc options on the command line More...
 
#define EXIT(A)   ::opencarp::finalize_backend_and_exit(A)
 finalize the backend, if it runs, and exit More...
 

Functions

bool opencarp::ginkgo_selected ()
 
bool opencarp::petsc_active ()
 
void opencarp::initialize_backend (int *argc, char **argv, char *rc, char *help_msg)
 
void opencarp::finalize_backend ()
 
void opencarp::finalize_backend_and_exit (int code)
 

Detailed Description

Starts and stops the linear algebra backend the flavor parameter selects.

With Ginkgo, only MPI is started, and no function of PETSc is called. So this header, like all code the backends share, does not include PETSc headers: they also redefine the MPI functions to update the logging counters of PETSc.

Definition in file backend.h.

Macro Definition Documentation

◆ DELIMIT_OPTS

#define DELIMIT_OPTS   "+"

separates the openCARP options from the PETSc options on the command line

Definition at line 21 of file backend.h.

◆ EXIT

#define EXIT (   A)    ::opencarp::finalize_backend_and_exit(A)

finalize the backend, if it runs, and exit

Definition at line 23 of file backend.h.