![]() |
Block-Structured AMR Software Framework
|
Convenience interface for configuring and invoking HYPRE IJ solvers. More...
#include <AMReX_HypreIJIface.H>
Public Types | |
| using | HypreIntType = HYPRE_Int |
| using | HypreRealType = HYPRE_Real |
Public Member Functions | |
| HypreIJIface (MPI_Comm comm, HypreIntType ilower, HypreIntType iupper, int verbose) | |
Construct an IJ interface spanning rows [ilower, iupper]. | |
| ~HypreIJIface () | |
| HypreIJIface (HypreIJIface const &)=delete | |
| HypreIJIface (HypreIJIface &&)=delete | |
| HypreIJIface & | operator= (HypreIJIface const &)=delete |
| HypreIJIface & | operator= (HypreIJIface &&)=delete |
| void | parse_inputs (const std::string &prefix="hypre") |
| Parse runtime options (solver, preconditioner, tolerances). | |
| void | solve (HypreRealType rel_tol, HypreRealType abs_tol, HypreIntType max_iter) |
| Solve the linear system using the configured solver/preconditioner. | |
| HYPRE_IJMatrix | A () |
| IJ matrix instance. | |
| HYPRE_IJVector | b () |
| Right hand side IJ vector instance. | |
| HYPRE_IJVector | x () |
| Solution IJ vector instance. | |
| HypreIntType | getNumIters () const |
| Number of iterations taken by the solver to reach the desired tolerance. | |
| HypreRealType | getFinalResidualNorm () const |
| Final residual norm after a linear solve. | |
| bool | adjustSingularMatrix () const |
Convenience interface for configuring and invoking HYPRE IJ solvers.
| using amrex::HypreIJIface::HypreIntType = HYPRE_Int |
| using amrex::HypreIJIface::HypreRealType = HYPRE_Real |
| amrex::HypreIJIface::HypreIJIface | ( | MPI_Comm | comm, |
| HypreIntType | ilower, | ||
| HypreIntType | iupper, | ||
| int | verbose | ||
| ) |
Construct an IJ interface spanning rows [ilower, iupper].
| 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. |
| amrex::HypreIJIface::~HypreIJIface | ( | ) |
|
delete |
|
delete |
|
inline |
IJ matrix instance.
|
inline |
|
inline |
Right hand side IJ vector instance.
|
inline |
Final residual norm after a linear solve.
|
inline |
Number of iterations taken by the solver to reach the desired tolerance.
|
delete |
|
delete |
| void amrex::HypreIJIface::parse_inputs | ( | const std::string & | prefix = "hypre" | ) |
Parse runtime options (solver, preconditioner, tolerances).
| prefix | ParmParse prefix; defaults to the literal "hypre" namespace used for HYPRE options. |
| void amrex::HypreIJIface::solve | ( | HypreRealType | rel_tol, |
| HypreRealType | abs_tol, | ||
| HypreIntType | max_iter | ||
| ) |
Solve the linear system using the configured solver/preconditioner.
| rel_tol | Relative tolerance. |
| abs_tol | Absolute tolerance. |
| max_iter | Iteration limit. |
|
inline |
Solution IJ vector instance.