|
| Teuchos::LAPACK< int, ScalarType > | lapack |
| |
| Teuchos::RCP< LinearProblem< ScalarType, MV, OP > > | problem_ |
| | The current linear problem to solve. More...
|
| |
| Teuchos::RCP< OutputManager< ScalarType > > | printer_ |
| |
| Teuchos::RCP< std::ostream > | outputStream_ |
| |
| Teuchos::RCP< StatusTest< ScalarType, MV, OP > > | sTest_ |
| |
| Teuchos::RCP< StatusTestMaxIters< ScalarType, MV, OP > > | maxIterTest_ |
| |
| Teuchos::RCP< StatusTest< ScalarType, MV, OP > > | convTest_ |
| |
| Teuchos::RCP< StatusTestGenResNorm< ScalarType, MV, OP > > | expConvTest_ |
| |
| Teuchos::RCP< StatusTestGenResNorm< ScalarType, MV, OP > > | impConvTest_ |
| |
| Teuchos::RCP< StatusTestOutput< ScalarType, MV, OP > > | outputTest_ |
| |
| ortho_factory_type | orthoFactory_ |
| | Factory for creating MatOrthoManager subclass instances. More...
|
| |
| Teuchos::RCP< MatOrthoManager< ScalarType, MV, OP > > | ortho_ |
| | Orthogonalization manager. More...
|
| |
| Teuchos::RCP< Teuchos::ParameterList > | params_ |
| | This solver's current parameter list. More...
|
| |
| Teuchos::RCP< const Teuchos::ParameterList > | defaultParams_ |
| | Default parameter list. More...
|
| |
| MagnitudeType | convTol_ |
| |
| MagnitudeType | orthoKappa_ |
| |
| MagnitudeType | achievedTol_ |
| |
| int | blockSize_ |
| |
| int | maxRestarts_ |
| |
| int | maxIters_ |
| |
| int | numIters_ |
| |
| int | verbosity_ |
| |
| int | outputStyle_ |
| |
| int | outputFreq_ |
| |
| bool | adaptiveBlockSize_ |
| |
| std::string | orthoType_ |
| |
| std::string | recycleMethod_ |
| |
| std::string | impResScale_ |
| |
| std::string | expResScale_ |
| |
| std::string | label_ |
| |
| int | numBlocks_ |
| |
| int | recycledBlocks_ |
| |
| int | keff |
| |
| Teuchos::RCP< MV > | R_ |
| |
| Teuchos::RCP< MV > | V_ |
| |
| Teuchos::RCP< MV > | U_ |
| |
| Teuchos::RCP< MV > | C_ |
| |
| Teuchos::RCP< MV > | U1_ |
| |
| Teuchos::RCP< MV > | C1_ |
| |
| Teuchos::RCP< SDM > | G_ |
| |
| Teuchos::RCP< SDM > | H_ |
| |
| Teuchos::RCP< SDM > | B_ |
| |
| Teuchos::RCP< SDM > | PP_ |
| |
| Teuchos::RCP< SDM > | HP_ |
| |
| std::vector< ScalarType > | tau_ |
| |
| std::vector< ScalarType > | work_ |
| |
| Teuchos::RCP< SDM > | F_ |
| |
| std::vector< int > | ipiv_ |
| |
| Teuchos::RCP< Teuchos::Time > | timerSolve_ |
| | Timer for solve(). More...
|
| |
| bool | isSet_ |
| | Whether setParameters() successfully finished setting parameters. More...
|
| |
| bool | loaDetected_ |
| | Whether a loss of accuracy was detected during the solve. More...
|
| |
| bool | builtRecycleSpace_ |
| | Whether we have generated or regenerated a recycle space yet this solve. More...
|
| |
| static const bool | adaptiveBlockSize_default_ = true |
| |
| static const std::string | recycleMethod_default_ = "harmvecs" |
| |
| ReturnType | solve () |
| | Solve the current linear problem. More...
|
| |
| void | init () |
| |
| void | initializeStateStorage () |
| |
| void | buildRecycleSpaceKryl (int &keff, Teuchos::RCP< BlockGmresIter< ScalarType, MV, OP > > block_gmres_iter) |
| |
| void | buildRecycleSpaceAugKryl (Teuchos::RCP< BlockGCRODRIter< ScalarType, MV, OP > > gcrodr_iter) |
| |
| int | getHarmonicVecsKryl (int m, const SDM &HH, SDM &PP) |
| |
| int | getHarmonicVecsAugKryl (int keff, int m, const SDM &HH, const Teuchos::RCP< const MV > &VV, SDM &PP) |
| |
| void | sort (std::vector< MagnitudeType > &dlist, int n, std::vector< int > &iperm) |
| |
|
| | SolverManager () |
| | Empty constructor. More...
|
| |
| virtual | ~SolverManager () |
| | Destructor. More...
|
| |
| virtual Teuchos::RCP< SolverManager< ScalarType, MV, OP > > | clone () const =0 |
| | clone the solver manager. More...
|
| |
| virtual void | setUserConvStatusTest (const Teuchos::RCP< StatusTest< ScalarType, MV, OP > > &userConvStatusTest, const typename StatusTestCombo< ScalarType, MV, OP >::ComboType &comboType=StatusTestCombo< ScalarType, MV, OP >::SEQ) |
| | Set user-defined convergence status test. More...
|
| |
| virtual void | setDebugStatusTest (const Teuchos::RCP< StatusTest< ScalarType, MV, OP > > &debugStatusTest) |
| | Set user-defined debug status test. More...
|
| |
| DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
| |
| std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
| |
| virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| |
| void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| |
| virtual | ~Describable () |
| |
| | LabeledObject () |
| |
| virtual | ~LabeledObject () |
| |
| virtual void | setObjectLabel (const std::string &objectLabel) |
| |
| virtual std::string | getObjectLabel () const |
| |
| static const EVerbosityLevel | verbLevel_default |
| |
template<class ScalarType, class MV, class OP>
class Belos::BlockGCRODRSolMgr< ScalarType, MV, OP >
A solver manager for the Block GCRO-DR (Block Recycling GMRES) linear solver.
- Author
- Kirk M. Soodhalter and Michael L. Parks
GCRO-DR (also called Recycling GMRES) is a variant of GMRES that can more efficiently solve sequences linear systems. It does so by "recycling" Krylov basis information from previous solves.
The original GCRO-DR algorithm can only solve one right-hand side at a time. Block GCRO-DR extends GCRO-DR so that it can solve multiple right-hand sides at a time; thus, it can solve sequences of block systems.
Definition at line 127 of file BelosBlockGCRODRSolMgr.hpp.
template<class ScalarType , class MV , class OP >
Basic constructor for GCRODRSolMgr.
This constructor accepts the LinearProblem to be solved in addition to a parameter list of options for the solver manager. Some of the more important options include the following:
- "Num Blocks": an
int specifying the number of blocks allocated for the Krylov basis. Default: 50.
- "Block Size": an
int specifying the number of right hand sides being solved at a time.
- "Num Recycled Blocks": an
int specifying the number of blocks allocated for the Krylov basis. Default: 5.
- "Maximum Iterations": an
int specifying the maximum number of iterations the underlying solver is allowed to perform. Default: 5000.
- "Maximum Restarts": an
int specifying the maximum number of restarts the underlying solver is allowed to perform. Default: 100.
- "Orthogonalization": an
std::string specifying the desired orthogonalization. Currently supported values: "DGKS", "ICGS", "IMGS", and "TSQR" (if Belos was built with TSQR support). Default: "DGKS".
- "Orthogonalization Parameters": a ParameterList or RCP<(const) ParameterList> of parameters specific to the type of orthogonalization used. Defaults are set automatically.
- "Verbosity": a sum of MsgType specifying the verbosity. Default: Belos::Errors.
- "Output Style": a OutputType specifying the style of output. Default: Belos::General.
- "Convergence Tolerance": a
MagnitudeType specifying the level that residual norms must reach to decide convergence. Default: 1e-8.
Other supported options:
- "Output Frequency": an int specifying how often (in terms of number of iterations) convergence information should be output to the output stream. Default: -1 (never output convergence information).
- "Output Stream": a reference-counted pointer to the output stream where all solver output is sent. Default stream is std::cout (stdout, in C terms). For stderr, supply Teuchos::rcp(&std::cerr, false).
- "Implicit Residual Scaling": the type of scaling used in the implicit residual convergence test. Default: "Norm of Preconditioned Initial Residual".
- "Explicit Residual Scaling": the type of scaling used in the explicit residual convergence test. Default: "Norm of Initial Residual".
- "Timer Label": the string to use as a prefix for the timer labels. Default: "Belos"
- "Orthogonalization Constant": a
MagnitudeType corresponding to the "depTol" parameter of DGKS orthogonalization. Ignored unless DGKS orthogonalization is used. DGKS decides the default value.
Definition at line 445 of file BelosBlockGCRODRSolMgr.hpp.
template<class ScalarType , class MV , class OP >
template<class ScalarType , class MV , class OP >
Solve the current linear problem.
This method performs possibly repeated calls to the underlying linear solver's iterate() routine until the problem has been solved (as decided by the solver manager) or the solver manager decides to quit.
This method calls BlockGCRODRIter::iterate(), which will return either because a specially constructed status test evaluates to Passed or an exception is thrown.
A return from BlockGCRODRIter::iterate() signifies one of the following scenarios:
- the maximum number of restarts has been exceeded. In this scenario, the current solutions to the linear system will be placed in the linear problem and return Unconverged.
- global convergence has been met. In this case, the current solutions to the linear system will be placed in the linear problem and the solver manager will return Converged.
- Converged: the linear problem was solved to the specification required by the solver manager.
- Unconverged: the linear problem was not solved to the specification desired by the solver manager.
Implements Belos::SolverManager< ScalarType, MV, OP >.
Definition at line 1795 of file BelosBlockGCRODRSolMgr.hpp.