10 #ifndef MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_DECL_HPP_
11 #define MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_DECL_HPP_
25 #include "MueLu_SmootherPrototype.hpp"
73 template <class Scalar = SmootherPrototype<>::scalar_type,
74 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
75 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
76 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
80 #undef MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_SHORT
125 void Apply(MultiVector &X,
const MultiVector &B,
bool InitialGuessIsZero =
false)
const;
156 std::vector<Teuchos::RCP<const SmootherBase> >
Inverse_;
176 #define MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_SHORT
virtual ~BlockedGaussSeidelSmoother()
Destructor.
MueLu::DefaultLocalOrdinal LocalOrdinal
RCP< const MapExtractorClass > domainMapExtractor_
domain map extractor (from A_ generated by AFact)
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
Base class for smoother prototypes.
block Gauss-Seidel method for blocked matrices
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level verbLevel to an FancyOStream object out.
std::vector< Teuchos::RCP< const SmootherBase > > Inverse_
vector of smoother/solver factories
std::string description() const
Return a simple one-line description of this object.
void DeclareInput(Level ¤tLevel) const
Input.
std::vector< bool > bIsBlockedOperator_
vector storing whether sub-block is a blocked operator (needed for nested blocked smoothers using Thy...
RCP< FactoryBase > AFact_
A Factory.
RCP< const MapExtractorClass > rangeMapExtractor_
range map extractor (from A_ generated by AFact)
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
void Setup(Level ¤tLevel)
Setup routine In the Setup method the Inverse_ vector is filled with the corresponding SmootherBase o...
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
vector of factory managers
BlockedGaussSeidelSmoother()
Constructor.
RCP< SmootherPrototype > Copy() const
RCP< const ParameterList > GetValidParameterList() const
Input.
std::string type_
smoother type
RCP< Matrix > A_
internal blocked operator "A" generated by AFact_
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the direct solver. Solves the linear system AX=B using the constructed solver.
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos)
Add a factory manager.