53 #ifndef MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_DECL_HPP_
54 #define MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_DECL_HPP_
60 #include <Xpetra_Matrix_fwd.hpp>
61 #include <Xpetra_BlockedCrsMatrix_fwd.hpp>
62 #include <Xpetra_ReorderedBlockedCrsMatrix_fwd.hpp>
63 #include <Xpetra_MultiVectorFactory_fwd.hpp>
64 #include <Xpetra_MapExtractor_fwd.hpp>
68 #include "MueLu_SmootherPrototype.hpp"
117 template <class Scalar = SmootherPrototype<>::scalar_type,
118 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
119 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
120 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
126 #undef MUELU_BLOCKEDGAUSSSEIDELSMOOTHER_SHORT
173 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
202 std::vector<Teuchos::RCP<const SmootherBase> >
Inverse_;
219 #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 to an FancyOStream object.
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_
block operator
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.