|
MueLu
Version of the Day
|
This class enables the elimination of the nullspace component of the solution through the use of projection. More...
#include <MueLu_ProjectorSmoother_decl.hpp>
Constructors / destructors | |
| ProjectorSmoother (RCP< SmootherPrototype > coarseSolver) | |
| Constructor. More... | |
| virtual | ~ProjectorSmoother () |
| Destructor. More... | |
| void | DeclareInput (Level ¤tLevel) const |
| Input. More... | |
Setup and Apply methods. | |
| void | Setup (Level ¤tLevel) |
| Set up the direct solver. More... | |
| void | Apply (MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const |
Apply the direct solver. Solves the linear system AX=B using the constructed solver. More... | |
| RCP< SmootherPrototype > | Copy () const |
Overridden from Teuchos::Describable | |
| RCP< MultiVector > | Borth_ |
| RCP< SmootherPrototype > | coarseSolver_ |
| std::string | description () const |
| Return a simple one-line description of this object. More... | |
| void | print (Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const |
| Print the object with some verbosity level to an FancyOStream object. More... | |
| size_t | getNodeSmootherComplexity () const |
| Get a rough estimate of cost per iteration. More... | |
This class enables the elimination of the nullspace component of the solution through the use of projection.
The solution of the coarsest level system may have a significant nullspace component. We can try to eliminate it through the use of nullspaces. Due to our construction algorithms, we always have some nullspace vectors on the coarsest level. However, we do not know if they are true nullspace vectors or are only approximations to them.
We will use the Rayleigh quotiont to separate the true nullspace vectors. If Rayleigh quotient is less than specified epsilon, we consider the vector to be a true nullspace vector.
After we separate true nullspace vectors, we project our solution to the space orthogonal to them. To do that in a computationally efficient manner, in the Setup stage we orthonormalize the selected nullspace components.
Definition at line 80 of file MueLu_ProjectorSmoother_decl.hpp.
| MueLu::ProjectorSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::ProjectorSmoother | ( | RCP< SmootherPrototype > | coarseSolver | ) |
Constructor.
Definition at line 62 of file MueLu_ProjectorSmoother_def.hpp.
|
virtual |
Destructor.
Definition at line 67 of file MueLu_ProjectorSmoother_def.hpp.
|
virtual |
Input.
Definition at line 70 of file MueLu_ProjectorSmoother_def.hpp.
|
virtual |
Set up the direct solver.
Definition at line 78 of file MueLu_ProjectorSmoother_def.hpp.
|
virtual |
Apply the direct solver. Solves the linear system AX=B using the constructed solver.
| X | initial guess |
| B | right-hand side |
| InitialGuessIsZero | This option has no effect. |
Definition at line 140 of file MueLu_ProjectorSmoother_def.hpp.
| RCP< MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node > > MueLu::ProjectorSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Copy |
Definition at line 161 of file MueLu_ProjectorSmoother_def.hpp.
|
virtual |
Return a simple one-line description of this object.
Reimplemented from MueLu::Describable.
Definition at line 166 of file MueLu_ProjectorSmoother_def.hpp.
| void MueLu::ProjectorSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::print | ( | Teuchos::FancyOStream & | out, |
| const VerbLevel | verbLevel = Default |
||
| ) | const |
Print the object with some verbosity level to an FancyOStream object.
Definition at line 173 of file MueLu_ProjectorSmoother_def.hpp.
|
inline |
Get a rough estimate of cost per iteration.
Definition at line 132 of file MueLu_ProjectorSmoother_decl.hpp.
|
private |
Definition at line 138 of file MueLu_ProjectorSmoother_decl.hpp.
|
private |
Definition at line 139 of file MueLu_ProjectorSmoother_decl.hpp.