LAMA
lama::SingleGridSetup Class Reference

#include <SingleGridSetup.hpp>

Inheritance diagram for lama::SingleGridSetup:

Public Member Functions

 SingleGridSetup ()
virtual ~SingleGridSetup ()
virtual void initialize (const Matrix &coefficients)
virtual SolvergetCoarseLevelSolver ()
virtual unsigned int getNumLevels ()
virtual SolvergetSmoother (const unsigned int level)
virtual const MatrixgetGalerkin (const unsigned int level)
virtual const MatrixgetRestriction (const unsigned int level)
virtual const MatrixgetInterpolation (const unsigned int level)
virtual VectorgetSolutionVector (const unsigned int level)
virtual VectorgetRhsVector (const unsigned int level)
virtual VectorgetTmpResVector (const unsigned int level)
virtual std::string getCouplingPredicateInfo () const
virtual std::string getColoringInfo () const
virtual std::string getInterpolationInfo () const
virtual std::string getSmootherInfo () const
virtual std::string getCoarseLevelSolverInfo () const
virtual void setCoarseLevelSolver (SolverPtr solver)
virtual void setSmoother (SolverPtr solver)
 Usually sets smoother for all level, for this case overwrites the coarse level solver.
virtual void setMaxLevels (const unsigned int)
virtual void setMinVarsCoarseLevel (const unsigned int)
virtual void setHostOnlyLevel (IndexType hostOnlyLevel)
virtual void setReplicatedLevel (IndexType replicatedLevel)

Protected Attributes

IndexType mHostOnlyLevel
IndexType mReplicatedLevel

Private Member Functions

 LAMA_LOG_DECL_STATIC_LOGGER (logger)

Private Attributes

SolverPtr mSolver
std::auto_ptr< MatrixmIdentity
std::auto_ptr< VectormSolutionVector
std::auto_ptr< VectormRhsVector
std::auto_ptr< VectormTmpResVector

Constructor & Destructor Documentation


Member Function Documentation

std::string lama::SingleGridSetup::getCoarseLevelSolverInfo ( ) const [virtual]

Implements lama::AMGSetup.

References mSolver.

std::string lama::SingleGridSetup::getColoringInfo ( ) const [virtual]

Implements lama::AMGSetup.

std::string lama::SingleGridSetup::getCouplingPredicateInfo ( ) const [virtual]

Implements lama::AMGSetup.

const Matrix & lama::SingleGridSetup::getGalerkin ( const unsigned int  level) [virtual]

Implements lama::AMGSetup.

References mSolver.

const Matrix & lama::SingleGridSetup::getInterpolation ( const unsigned int  level) [virtual]

Implements lama::AMGSetup.

References mIdentity.

std::string lama::SingleGridSetup::getInterpolationInfo ( ) const [virtual]

Implements lama::AMGSetup.

unsigned int lama::SingleGridSetup::getNumLevels ( ) [virtual]

Implements lama::AMGSetup.

const Matrix & lama::SingleGridSetup::getRestriction ( const unsigned int  level) [virtual]

Implements lama::AMGSetup.

References mIdentity.

Vector & lama::SingleGridSetup::getRhsVector ( const unsigned int  level) [virtual]

Implements lama::AMGSetup.

References mRhsVector.

Solver & lama::SingleGridSetup::getSmoother ( const unsigned int  level) [virtual]

Implements lama::AMGSetup.

References mSolver.

std::string lama::SingleGridSetup::getSmootherInfo ( ) const [virtual]

Implements lama::AMGSetup.

References mSolver.

Vector & lama::SingleGridSetup::getSolutionVector ( const unsigned int  level) [virtual]

Implements lama::AMGSetup.

References mSolutionVector.

Vector & lama::SingleGridSetup::getTmpResVector ( const unsigned int  level) [virtual]

Implements lama::AMGSetup.

References mTmpResVector.

Implements lama::AMGSetup.

References mSolver.

void lama::AMGSetup::setHostOnlyLevel ( IndexType  hostOnlyLevel) [virtual, inherited]
virtual void lama::SingleGridSetup::setMaxLevels ( const unsigned int  ) [inline, virtual]

Implements lama::AMGSetup.

virtual void lama::SingleGridSetup::setMinVarsCoarseLevel ( const unsigned int  ) [inline, virtual]

Implements lama::AMGSetup.

void lama::AMGSetup::setReplicatedLevel ( IndexType  replicatedLevel) [virtual, inherited]
void lama::SingleGridSetup::setSmoother ( SolverPtr  solver) [virtual]

Usually sets smoother for all level, for this case overwrites the coarse level solver.

Implements lama::AMGSetup.

References mSolver.


Field Documentation

std::auto_ptr<Vector> lama::SingleGridSetup::mRhsVector [private]

Referenced by getRhsVector(), and initialize().

Referenced by getSolutionVector(), and initialize().

std::auto_ptr<Vector> lama::SingleGridSetup::mTmpResVector [private]

Referenced by getTmpResVector(), and initialize().


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