PETSc related utilities.
More...
|
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.
|
|
◆ VIEWERFORMAT
◆ 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 | ) |
|
◆ getName()
◆ setName()
template<class T >
void precice::utils::petsc::setName |
( |
T | obj, |
|
|
const std::string & | name ) |
◆ swap()
void precice::utils::petsc::swap |
( |
Vector & | lhs, |
|
|
Vector & | rhs ) |
|
noexcept |