Belos  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false > Class Template Reference

Stub specialization for ScalarType types which are NOT real, or for which Teuchos::LAPACK does NOT have a valid implementation. More...

#include <BelosSolverManager.hpp>

Inheritance diagram for Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >:
Inheritance graph
[legend]

Public Member Functions

 SolverManagerRequiresRealLapack ()
 
virtual ~SolverManagerRequiresRealLapack ()
 
virtual const LinearProblem
< ScalarType, MV, OP > & 
getProblem () const
 Return a reference to the linear problem being solved by this solver manager. More...
 
virtual Teuchos::RCP< const
Teuchos::ParameterList
getValidParameters () const
 Return the valid parameters for this solver manager. More...
 
virtual Teuchos::RCP< const
Teuchos::ParameterList
getCurrentParameters () const
 Return the current parameters being used for this solver manager. More...
 
virtual int getNumIters () const
 Get the iteration count for the most recent call to solve(). More...
 
virtual bool isLOADetected () const
 Returns whether a loss of accuracy was detected in the solver. More...
 
virtual void setProblem (const Teuchos::RCP< LinearProblem< ScalarType, MV, OP > > &)
 Set the linear problem that needs to be solved. More...
 
virtual void setParameters (const Teuchos::RCP< Teuchos::ParameterList > &params)
 Set the parameters to use when solving the linear problem. More...
 
virtual void reset (const ResetType type)
 Reset the solver manager. More...
 
virtual ReturnType solve ()
 Iterate until the status test tells us to stop. More...
 
- Public Member Functions inherited from Belos::SolverManager< ScalarType, MV, OP >
 SolverManager ()
 Empty constructor. More...
 
virtual ~SolverManager ()
 Destructor. More...
 
virtual Teuchos::RCP
< SolverManager< ScalarType,
MV, OP > > 
clone () const =0
 clone the solver manager. More...
 
virtual Teuchos::ScalarTraits
< ScalarType >::magnitudeType 
achievedTol () const
 Tolerance achieved by the last solve() invocation. More...
 
virtual void setUserConvStatusTest (const Teuchos::RCP< StatusTest< ScalarType, MV, OP > > &, const typename StatusTestCombo< ScalarType, MV, OP >::ComboType &=StatusTestCombo< ScalarType, MV, OP >::SEQ)
 Set user-defined convergence status test. More...
 
virtual void setDebugStatusTest (const Teuchos::RCP< StatusTest< ScalarType, MV, OP > > &)
 Set user-defined debug status test. More...
 
- Public Member Functions inherited from Teuchos::Describable
virtual std::string description () const
 
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
 
DescribableStreamManipulatorState describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default)
 
std::ostream & operator<< (std::ostream &os, const DescribableStreamManipulatorState &d)
 

Additional Inherited Members

- Static Public Attributes inherited from Teuchos::Describable
static const EVerbosityLevel verbLevel_default
 

Detailed Description

template<class ScalarType, class MV, class OP>
class Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >

Stub specialization for ScalarType types which are NOT real, or for which Teuchos::LAPACK does NOT have a valid implementation.

This is a stub specialization whose constructor always throws std::logic_error. Subclasses must always call the base class constructor.

Definition at line 467 of file BelosSolverManager.hpp.

Constructor & Destructor Documentation

template<class ScalarType , class MV , class OP >
Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::SolverManagerRequiresRealLapack ( )
inline

Definition at line 470 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::~SolverManagerRequiresRealLapack ( )
inlinevirtual

Definition at line 474 of file BelosSolverManager.hpp.

Member Function Documentation

template<class ScalarType , class MV , class OP >
virtual const LinearProblem<ScalarType,MV,OP>& Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::getProblem ( ) const
inlinevirtual

Return a reference to the linear problem being solved by this solver manager.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 476 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual Teuchos::RCP<const Teuchos::ParameterList> Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::getValidParameters ( ) const
inlinevirtual

Return the valid parameters for this solver manager.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 483 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual Teuchos::RCP<const Teuchos::ParameterList> Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::getCurrentParameters ( ) const
inlinevirtual

Return the current parameters being used for this solver manager.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 490 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual int Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::getNumIters ( ) const
inlinevirtual

Get the iteration count for the most recent call to solve().

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 497 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual bool Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::isLOADetected ( ) const
inlinevirtual

Returns whether a loss of accuracy was detected in the solver.

Note
This method is normally applicable to GMRES-type solvers.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 504 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual void Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::setProblem ( const Teuchos::RCP< LinearProblem< ScalarType, MV, OP > > &  problem)
inlinevirtual

Set the linear problem that needs to be solved.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 512 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual void Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::setParameters ( const Teuchos::RCP< Teuchos::ParameterList > &  params)
inlinevirtual

Set the parameters to use when solving the linear problem.

Parameters
params[in/out] List of parameters to use when solving the linear problem. This list will be modified as necessary to include default parameters that need not be provided. If params is null, then this method uses default parameters.
Note
The ParameterList returned by getValidParameters() has all the parameters that the solver understands, possibly including human-readable documentation and validators.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 519 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual void Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::reset ( const ResetType  type)
inlinevirtual

Reset the solver manager.

Reset the solver manager in a way specified by the ResetType parameter. This informs the solver manager that the solver should prepare for the next call to solve by resetting certain elements of the iterative solver strategy.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 526 of file BelosSolverManager.hpp.

template<class ScalarType , class MV , class OP >
virtual ReturnType Belos::Details::SolverManagerRequiresRealLapack< ScalarType, MV, OP, false >::solve ( )
inlinevirtual

Iterate until the status test tells us to stop.

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 via the status test(s)), or the solver manager decides to quit.

Returns
A Belos::ReturnType enum specifying:
  • Belos::Converged: the linear problem was solved to the specification required by the solver manager.
  • Belos::Unconverged: the linear problem was not solved to the specification desired by the solver manager.

Implements Belos::SolverManager< ScalarType, MV, OP >.

Definition at line 533 of file BelosSolverManager.hpp.


The documentation for this class was generated from the following file:

Generated on Thu Mar 28 2024 09:24:31 for Belos by doxygen 1.8.5