Peano
Loading...
Searching...
No Matches
petsc Namespace Reference

Data Structures

class  LinearEquationSystem
 Class to capture all of the PETSc objects needed by some experiements. More...
 
class  LocalToGlobalMap
 

Functions

void initParallelEnvironment (int *argc, char ***argv)
 Initialise PETSc.
 
void shutdownParallelEnvironment ()
 
tarch::tests::TestCase * getUnitTests ()
 Please destroy after usage.
 

Function Documentation

◆ getUnitTests()

tarch::tests::TestCase * petsc::getUnitTests ( )

Please destroy after usage.

◆ initParallelEnvironment()

void petsc::initParallelEnvironment ( int *  argc,
char ***  argv 
)

Initialise PETSc.

Should be called early throughout the main. In line with PETSc's documentation, maybe as the first thing at all. As PETSc "owns" MPI itself, this routine could peano4::initParallelEnvironment(), but our init does a little bit more, so please call this routine directly after you have invoked Peano's parallel initialisation.

See also
https://petsc.org/release/manualpages/Sys/PetscInitialize/
peano4::initParallelEnvironment()

◆ shutdownParallelEnvironment()

void petsc::shutdownParallelEnvironment ( )