preCICE v3.2.0
Loading...
Searching...
No Matches
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 49 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 768 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 756 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 126 of file Petsc.cpp.

Here is the call graph for this function:

◆ getName()

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

Definition at line 142 of file Petsc.cpp.

Here is the call graph for this function:

◆ setName()

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

Definition at line 134 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 415 of file Petsc.cpp.