|
| | HyprePreconditioner (const M &A, const Opm::PropertyTree prm, const Comm &comm) |
| | Constructor for the HyprePreconditioner class.
|
| | ~HyprePreconditioner () |
| | Destructor for HyprePreconditioner.
|
| void | update () override |
| | Updates the preconditioner with the current matrix values.
|
| void | pre (X &v, Y &) override |
| | Pre-processing step before applying the preconditioner.
|
| void | apply (X &v, const Y &d) override |
| | Applies the preconditioner to a vector.
|
| void | post (X &) override |
| | Post-processing step after applying the preconditioner.
|
| Dune::SolverCategory::Category | category () const override |
| | Returns the solver category.
|
| bool | hasPerfectUpdate () const override |
| | Checks if the preconditioner has a perfect update.
|
template<class M, class X, class Y, class Comm>
class Hypre::HyprePreconditioner< M, X, Y, Comm >
Wrapper for Hypre's BoomerAMG preconditioner.
This class provides an interface to the BoomerAMG preconditioner from the Hypre library. It is designed to work with matrices, update vectors, and defect vectors specified by the template parameters. The HypreInterface class provides a unified interface to Hypre's functionality, allowing for easy switching between CPU and GPU input data types and backend acceleration.
Supports four use cases:
- Input type is CPU and backend acceleration is CPU
- Input type is CPU and backend acceleration is GPU
- Input type is GPU and backend acceleration is GPU
- Input type is GPU and backend acceleration is CPU
- Template Parameters
-
| M | The matrix type |
| X | The vector type for the solution |
| Y | The vector type for the right-hand side |
template<class M, class X, class Y, class Comm>
Applies the preconditioner to a vector.
Performs one AMG V-cycle to solve the system. Involves uploading vectors to Hypre, applying the preconditioner, and transferring the result back to the vector.
- Parameters
-
| v | The update vector. |
| d | The defect vector. |