My Project
|
Wrapper for Hypre's BoomerAMG preconditioner. More...
#include <HyprePreconditioner.hpp>
Public Member Functions | |
HyprePreconditioner (const M &A, const Opm::PropertyTree prm) | |
Constructor for the HyprePreconditioner class. | |
~HyprePreconditioner () | |
Destructor for the HyprePreconditioner class. | |
void | update () override |
Updates the preconditioner with the current matrix values. | |
void | pre (X &, 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. | |
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.
M | The matrix type the preconditioner is for. |
X | The type of the update vector. |
Y | The type of the defect vector. |
|
inline |
Constructor for the HyprePreconditioner class.
Initializes the preconditioner with the given matrix and property tree.
A | The matrix for which the preconditioner is constructed. |
prm | The property tree containing configuration parameters. |
|
inline |
Destructor for the HyprePreconditioner class.
Cleans up resources allocated by the preconditioner.
|
inlineoverride |
Applies the preconditioner to a vector.
Performs one AMG V-cycle to solve the system.
v | The update vector. |
d | The defect vector. |
|
inlineoverride |
Returns the solver category.
|
inlineoverridevirtual |
Checks if the preconditioner has a perfect update.
Implements Dune::PreconditionerWithUpdate< X, Y >.
|
inlineoverride |
Post-processing step after applying the preconditioner.
This method is currently a no-op.
v | The update vector. |
|
inlineoverride |
Pre-processing step before applying the preconditioner.
This method is currently a no-op.
v | The update vector. |
d | The defect vector. |
|
inlineoverridevirtual |
Updates the preconditioner with the current matrix values.
This method should be called whenever the matrix values change.
Implements Dune::PreconditionerWithUpdate< X, Y >.