|
OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
|
#include <AmrSmoother.h>
Public Types | |
| enum | Smoother { GAUSS_SEIDEL = 0, SGS, JACOBI } |
| All supported Ifpack2 smoothers. More... | |
| typedef amr::global_ordinal_t | go_t |
| typedef amr::local_ordinal_t | lo_t |
| typedef amr::scalar_t | scalar_t |
| typedef amr::node_t | node_t |
| typedef amr::matrix_t | matrix_t |
| typedef amr::vector_t | vector_t |
| typedef Ifpack2::Preconditioner < scalar_t, lo_t, go_t, node_t > | preconditioner_t |
Public Member Functions | |
| AmrSmoother (const Teuchos::RCP< const matrix_t > &A, const Smoother &smoother, lo_t nSweeps) | |
| ~AmrSmoother () | |
| void | smooth (const Teuchos::RCP< vector_t > &x, const Teuchos::RCP< vector_t > &b) |
Static Public Member Functions | |
| static Smoother | convertToEnumSmoother (const std::string &smoother) |
Private Member Functions | |
| void | initParameter_m (const Smoother &smoother, lo_t nSweeps) |
Private Attributes | |
| Teuchos::RCP< preconditioner_t > | prec_mp |
| Preconditioner instance. More... | |
| Teuchos::RCP < Teuchos::ParameterList > | params_mp |
| Parameters of preconditioner. More... | |
Definition at line 30 of file AmrSmoother.h.
Definition at line 33 of file AmrSmoother.h.
Definition at line 34 of file AmrSmoother.h.
| typedef amr::matrix_t AmrSmoother::matrix_t |
Definition at line 37 of file AmrSmoother.h.
| typedef amr::node_t AmrSmoother::node_t |
Definition at line 36 of file AmrSmoother.h.
| typedef Ifpack2::Preconditioner<scalar_t, lo_t, go_t, node_t > AmrSmoother::preconditioner_t |
Definition at line 43 of file AmrSmoother.h.
| typedef amr::scalar_t AmrSmoother::scalar_t |
Definition at line 35 of file AmrSmoother.h.
| typedef amr::vector_t AmrSmoother::vector_t |
Definition at line 38 of file AmrSmoother.h.
All supported Ifpack2 smoothers.
| Enumerator | |
|---|---|
| GAUSS_SEIDEL | |
| SGS | |
| JACOBI | |
Definition at line 46 of file AmrSmoother.h.
| AmrSmoother::AmrSmoother | ( | const Teuchos::RCP< const matrix_t > & | A, |
| const Smoother & | smoother, | ||
| lo_t | nSweeps | ||
| ) |
| A | matrix to build smoother for |
| smoother | type |
| nSweeps | number of iterations per smoohting step |
Definition at line 28 of file AmrSmoother.cpp.
References initParameter_m(), params_mp, prec_mp, and type.

| AmrSmoother::~AmrSmoother | ( | ) |
Definition at line 48 of file AmrSmoother.cpp.
|
static |
Used in AmrMultiGrid constructor
| smoother | to create |
Definition at line 64 of file AmrSmoother.cpp.
References amr::JACOBI.
Referenced by AmrMultiGrid::convertToEnumSmoother_m().
Initialize paramter list for Ifpack2 smoothers
| smoother | of Ifpack2 |
| nSweeps | number of iterations |
Definition at line 80 of file AmrSmoother.cpp.
References Physics::e, GAUSS_SEIDEL, JACOBI, params_mp, SGS, and type.
Referenced by AmrSmoother().
Perform one smoothing step
| x | right-hand side |
| b | right-hand side |
Definition at line 54 of file AmrSmoother.cpp.
References prec_mp.
|
private |
Parameters of preconditioner.
Definition at line 94 of file AmrSmoother.h.
Referenced by AmrSmoother(), initParameter_m(), and ~AmrSmoother().
|
private |
Preconditioner instance.
Definition at line 91 of file AmrSmoother.h.
Referenced by AmrSmoother(), smooth(), and ~AmrSmoother().
1.8.5