#include <Petsc.hpp>
Definition at line 238 of file Petsc.hpp.
◆ SolverResult
The state of the KSP after returning from solve()
Enumerator |
---|
Converged | The solver converged.
|
Stopped | The solver reached the maximum iterations.
|
Diverged | The solver diverged.
|
Definition at line 263 of file Petsc.hpp.
◆ KSPSolver() [1/3]
precice::utils::petsc::KSPSolver::KSPSolver |
( |
const KSPSolver & | | ) |
|
|
delete |
Delete copy and assignment constructor.
Copying and assignment of this class would involve copying the pointer to the PETSc object and finally cause double destruction of it.
◆ KSPSolver() [2/3]
precice::utils::petsc::KSPSolver::KSPSolver |
( |
std::string | name = "" | ) |
|
|
explicit |
◆ KSPSolver() [3/3]
precice::utils::petsc::KSPSolver::KSPSolver |
( |
KSPSolver && | other | ) |
|
|
default |
Move constructor, use the implicitly declared.
◆ ~KSPSolver()
precice::utils::petsc::KSPSolver::~KSPSolver |
( |
| ) |
|
◆ getIterationNumber()
PetscInt precice::utils::petsc::KSPSolver::getIterationNumber |
( |
| ) |
|
Returns the iteration number of solver, either during or after the solve call.
Definition at line 767 of file Petsc.cpp.
◆ getRealtiveTolerance()
PetscReal precice::utils::petsc::KSPSolver::getRealtiveTolerance |
( |
| ) |
|
Returns the relavtive tolerance of the KSP.
Definition at line 785 of file Petsc.cpp.
◆ getResidualNorm()
PetscReal precice::utils::petsc::KSPSolver::getResidualNorm |
( |
| ) |
|
Returns the last residual norm of the KSP.
Definition at line 776 of file Petsc.cpp.
◆ getSolverResult()
Returns the current convergence reason as a SolverRestult.
Definition at line 683 of file Petsc.cpp.
◆ operator KSP &()
precice::utils::petsc::KSPSolver::operator KSP & |
( |
| ) |
|
Enables implicit conversion into a reference to a PETSc KSP type.
Definition at line 671 of file Petsc.cpp.
◆ operator=()
◆ reset()
void precice::utils::petsc::KSPSolver::reset |
( |
| ) |
|
Destroys and recreates the ksp on the same communicator.
Definition at line 676 of file Petsc.cpp.
◆ solve()
Solves the linear system, returns false it not converged.
Definition at line 701 of file Petsc.cpp.
◆ solveTranspose()
Solves the transposed linear system, returns false it not converged.
Definition at line 707 of file Petsc.cpp.
◆ summaryFor()
Returns a summary the KSP solving for b.
Definition at line 713 of file Petsc.cpp.
◆ ksp
KSP precice::utils::petsc::KSPSolver::ksp |
The documentation for this class was generated from the following files: