LAMA
|
#include <SingleGridSetup.hpp>
Public Member Functions | |
SingleGridSetup () | |
virtual | ~SingleGridSetup () |
virtual void | initialize (const Matrix &coefficients) |
virtual Solver & | getCoarseLevelSolver () |
virtual unsigned int | getNumLevels () |
virtual Solver & | getSmoother (const unsigned int level) |
virtual const Matrix & | getGalerkin (const unsigned int level) |
virtual const Matrix & | getRestriction (const unsigned int level) |
virtual const Matrix & | getInterpolation (const unsigned int level) |
virtual Vector & | getSolutionVector (const unsigned int level) |
virtual Vector & | getRhsVector (const unsigned int level) |
virtual Vector & | getTmpResVector (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< Matrix > | mIdentity |
std::auto_ptr< Vector > | mSolutionVector |
std::auto_ptr< Vector > | mRhsVector |
std::auto_ptr< Vector > | mTmpResVector |
lama::SingleGridSetup::~SingleGridSetup | ( | ) | [virtual] |
Solver & lama::SingleGridSetup::getCoarseLevelSolver | ( | ) | [virtual] |
Implements lama::AMGSetup.
References mSolver.
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.
void lama::SingleGridSetup::initialize | ( | const Matrix & | coefficients | ) | [virtual] |
lama::SingleGridSetup::LAMA_LOG_DECL_STATIC_LOGGER | ( | logger | ) | [private] |
void lama::SingleGridSetup::setCoarseLevelSolver | ( | SolverPtr | solver | ) | [virtual] |
Implements lama::AMGSetup.
References mSolver.
void lama::AMGSetup::setHostOnlyLevel | ( | IndexType | hostOnlyLevel | ) | [virtual, inherited] |
References lama::AMGSetup::mHostOnlyLevel.
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] |
References lama::AMGSetup::mReplicatedLevel.
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.
IndexType lama::AMGSetup::mHostOnlyLevel [protected, inherited] |
Referenced by lama::AMGSetup::setHostOnlyLevel().
std::auto_ptr<Matrix> lama::SingleGridSetup::mIdentity [private] |
Referenced by getInterpolation(), getRestriction(), and initialize().
IndexType lama::AMGSetup::mReplicatedLevel [protected, inherited] |
Referenced by lama::AMGSetup::setReplicatedLevel().
std::auto_ptr<Vector> lama::SingleGridSetup::mRhsVector [private] |
Referenced by getRhsVector(), and initialize().
std::auto_ptr<Vector> lama::SingleGridSetup::mSolutionVector [private] |
Referenced by getSolutionVector(), and initialize().
SolverPtr lama::SingleGridSetup::mSolver [private] |
std::auto_ptr<Vector> lama::SingleGridSetup::mTmpResVector [private] |
Referenced by getTmpResVector(), and initialize().