Convenience interface for configuring and invoking HYPRE IJ solvers.
More...
#include <AMReX_HypreIJIface.H>
Convenience interface for configuring and invoking HYPRE IJ solvers.
◆ HypreIntType
◆ HypreRealType
◆ HypreIJIface() [1/3]
Construct an IJ interface spanning rows [ilower, iupper].
- Parameters
-
| comm | MPI communicator. |
| ilower | Global row id lower bound (inclusive) owned by this rank. |
| iupper | Global row id upper bound (inclusive) owned by this rank. |
| verbose | Verbosity level forwarded to HYPRE. |
◆ ~HypreIJIface()
| amrex::HypreIJIface::~HypreIJIface |
( |
| ) |
|
◆ HypreIJIface() [2/3]
| amrex::HypreIJIface::HypreIJIface |
( |
HypreIJIface const & | | ) |
|
|
delete |
◆ HypreIJIface() [3/3]
| amrex::HypreIJIface::HypreIJIface |
( |
HypreIJIface && | | ) |
|
|
delete |
◆ A()
| HYPRE_IJMatrix amrex::HypreIJIface::A |
( |
| ) |
|
|
inlinenodiscard |
◆ adjustSingularMatrix()
| bool amrex::HypreIJIface::adjustSingularMatrix |
( |
| ) |
const |
|
inlinenodiscard |
◆ b()
| HYPRE_IJVector amrex::HypreIJIface::b |
( |
| ) |
|
|
inlinenodiscard |
Right hand side IJ vector instance.
◆ getFinalResidualNorm()
| HypreRealType amrex::HypreIJIface::getFinalResidualNorm |
( |
| ) |
const |
|
inlinenodiscard |
Final residual norm after a linear solve.
◆ getNumIters()
Number of iterations taken by the solver to reach the desired tolerance.
◆ ilower()
Lowest global row id owned by this rank.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ parse_inputs()
| void amrex::HypreIJIface::parse_inputs |
( |
const std::string & | prefix = "hypre" | ) |
|
Parse runtime options (solver, preconditioner, tolerances).
- Parameters
-
| prefix | ParmParse prefix; defaults to the literal "hypre" namespace used for HYPRE options. |
◆ setNeedSetup()
| void amrex::HypreIJIface::setNeedSetup |
( |
| ) |
|
|
inlinenoexcept |
Call after changing the matrix so the next solve redoes the setup.
◆ setRecomputePreconditioner()
| void amrex::HypreIJIface::setRecomputePreconditioner |
( |
bool | b | ) |
|
|
inlinenoexcept |
Redo the setup on every solve (default true). Callers that call setNeedSetup when the matrix changes can turn it off.
◆ setThrowException()
| void amrex::HypreIJIface::setThrowException |
( |
bool | t | ) |
|
|
inlinenoexcept |
Throw std::runtime_error instead of aborting on a hypre error or a non-finite residual (with abort_on_hypre_error, the default)
◆ solve()
Solve the linear system using the configured solver/preconditioner.
- Parameters
-
| rel_tol | Relative tolerance. |
| abs_tol | Absolute tolerance. |
| max_iter | Iteration limit. |
◆ x()
| HYPRE_IJVector amrex::HypreIJIface::x |
( |
| ) |
|
|
inlinenodiscard |
Solution IJ vector instance.
The documentation for this class was generated from the following files: