preCICE v3.1.1
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
precice::utils::petsc Namespace Reference

PETSc related utilities. More...

Classes

class  KSPSolver
 
class  Matrix
 
class  Vector
 
struct  Viewer
 

Enumerations

enum  VIEWERFORMAT { ASCII , BINARY }
 

Functions

template<class T >
MPI_Comm getCommunicator (T obj)
 
template<class T >
void setName (T obj, const std::string &name)
 
template<class T >
std::string getName (T obj)
 
void swap (Vector &lhs, Vector &rhs) noexcept
 
void destroy (ISLocalToGlobalMapping *IS)
 Destroys an ISLocalToGlobalMapping, if IS is not null and PetscIsInitialized.
 
void destroy (AO *ao)
 Destroys an application ordering, if ao is not null and PetscIsInitialized.
 
void destroy (KSP *ksp)
 Destroys an KSP, if ksp is not null and PetscIsInitialized.
 

Detailed Description

PETSc related utilities.

Enumeration Type Documentation

◆ VIEWERFORMAT

Enumerator
ASCII 
BINARY 

Definition at line 51 of file Petsc.hpp.

Function Documentation

◆ destroy() [1/3]

void precice::utils::petsc::destroy ( AO * ao)

Destroys an application ordering, if ao is not null and PetscIsInitialized.

Definition at line 808 of file Petsc.cpp.

◆ destroy() [2/3]

void precice::utils::petsc::destroy ( ISLocalToGlobalMapping * IS)

Destroys an ISLocalToGlobalMapping, if IS is not null and PetscIsInitialized.

Definition at line 796 of file Petsc.cpp.

◆ destroy() [3/3]

void precice::utils::petsc::destroy ( KSP * ksp)

Destroys an KSP, if ksp is not null and PetscIsInitialized.

◆ getCommunicator()

template<class T >
MPI_Comm precice::utils::petsc::getCommunicator ( T obj)

Definition at line 166 of file Petsc.cpp.

◆ getName()

template<class T >
std::string precice::utils::petsc::getName ( T obj)

Definition at line 182 of file Petsc.cpp.

◆ setName()

template<class T >
void precice::utils::petsc::setName ( T obj,
const std::string & name )

Definition at line 174 of file Petsc.cpp.

Here is the call graph for this function:

◆ swap()

void precice::utils::petsc::swap ( Vector & lhs,
Vector & rhs )
noexcept

Definition at line 455 of file Petsc.cpp.