Anasazi
Version of the Day
|
The Anasazi::RTRSolMgr provides a simple solver manager over the RTR eigensolver. For more information, see the discussion for RTRBase. More...
#include <AnasaziRTRSolMgr.hpp>
Public Member Functions | |
Constructors/Destructor | |
RTRSolMgr (const Teuchos::RCP< Eigenproblem< ScalarType, MV, OP > > &problem, Teuchos::ParameterList &pl) | |
Basic constructor for RTRSolMgr. More... | |
virtual | ~RTRSolMgr () |
Destructor. More... | |
Accessor methods | |
const Eigenproblem< ScalarType, MV, OP > & | getProblem () const |
Return the eigenvalue problem. More... | |
Teuchos::Array< Teuchos::RCP < Teuchos::Time > > | getTimers () const |
Return the timers for this object. More... | |
int | getNumIters () const |
Get the iteration count for the most recent call to solve. More... | |
Solver application methods | |
ReturnType | solve () |
This method performs possibly repeated calls to the underlying eigensolver's iterate() routine until the problem has been solved (as decided by the solver manager) or the solver manager decides to quit. More... | |
Public Member Functions inherited from Anasazi::SolverManager< ScalarType, MV, OP > | |
SolverManager () | |
Empty constructor. More... | |
virtual | ~SolverManager () |
Destructor. More... | |
The Anasazi::RTRSolMgr provides a simple solver manager over the RTR eigensolver. For more information, see the discussion for RTRBase.
Definition at line 84 of file AnasaziRTRSolMgr.hpp.
Anasazi::RTRSolMgr< ScalarType, MV, OP >::RTRSolMgr | ( | const Teuchos::RCP< Eigenproblem< ScalarType, MV, OP > > & | problem, |
Teuchos::ParameterList & | pl | ||
) |
Basic constructor for RTRSolMgr.
This constructor accepts the Eigenproblem to be solved in addition to a parameter list of options for the solver manager. These options include the following:
"Skinny Solver"
- a bool
specifying whether a non-caching ("skinny") solver implementation is used. Determines whether the underlying solver is IRTR or SIRTR."Which"
- a string
specifying the desired eigenvalues: SR or LR, i.e., smallest or largest algebraic eigenvalues."Block Size"
- an int
specifying the block size to be used by the underlying RTR solver. Default: problem->getNEV()"Verbosity"
- a sum of MsgType specifying the verbosity. Default: Errors"Output Stream"
- a reference-counted pointer to the formatted output stream where all solver output is sent. Default: Teuchos::getFancyOStream ( Teuchos::rcpFromRef (std::cout) )"Output Processor"
- an int
specifying the MPI processor that will print solver/timer details. Default: 0"Maximum Iterations"
- an int
specifying the maximum number of iterations the underlying solver is allowed to perform. Default: 100"Convergence Tolerance"
- a MagnitudeType
specifying the level that residual norms must reach to decide convergence. Default: machine precision."Relative Convergence Tolerance"
- a bool
specifying whether residuals norms should be scaled by their eigenvalues for the purposing of deciding convergence. Default: true"Convergence Norm"
- a string
specifying the norm for convergence testing: "2" or "M" Definition at line 184 of file AnasaziRTRSolMgr.hpp.
|
inlinevirtual |
Destructor.
Definition at line 120 of file AnasaziRTRSolMgr.hpp.
|
inlinevirtual |
Return the eigenvalue problem.
Implements Anasazi::SolverManager< ScalarType, MV, OP >.
Definition at line 127 of file AnasaziRTRSolMgr.hpp.
|
inlinevirtual |
Return the timers for this object.
The timers are ordered as follows:
Reimplemented from Anasazi::SolverManager< ScalarType, MV, OP >.
Definition at line 136 of file AnasaziRTRSolMgr.hpp.
|
inlinevirtual |
Get the iteration count for the most recent call to solve.
Implements Anasazi::SolverManager< ScalarType, MV, OP >.
Definition at line 141 of file AnasaziRTRSolMgr.hpp.
|
virtual |
This method performs possibly repeated calls to the underlying eigensolver's iterate() routine until the problem has been solved (as decided by the solver manager) or the solver manager decides to quit.
Implements Anasazi::SolverManager< ScalarType, MV, OP >.
Definition at line 268 of file AnasaziRTRSolMgr.hpp.