17 #ifndef MUELU_BLOCKEDDIRECTSOLVER_DECL_HPP_
18 #define MUELU_BLOCKEDDIRECTSOLVER_DECL_HPP_
27 #include "MueLu_SmootherPrototype.hpp"
42 template <class Scalar = SmootherPrototype<>::scalar_type,
43 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
44 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
45 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
49 #undef MUELU_BLOCKEDDIRECTSOLVER_SHORT
85 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
122 #define MUELU_BLOCKEDDIRECTSOLVER_SHORT
void Setup(Level ¤tLevel)
Setup routine Call the underlaying Setup routine of the nested direct solver once the input block mat...
MueLu::DefaultLocalOrdinal LocalOrdinal
BlockedDirectSolver(const std::string &type="", const Teuchos::ParameterList ¶mList=Teuchos::ParameterList())
Constructor.
void DeclareInput(Level ¤tLevel) const
Input.
Base class for smoother prototypes.
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
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.
RCP< const ParameterList > GetValidParameterList() const
Input.
std::string description() const
Return a simple one-line description of this object.
std::string type_
smoother type
RCP< MergedBlockedMatrixFactory > MergedAFact_
Factory to generate merged block matrix.
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
RCP< Matrix > A_
block operator
RCP< SmootherPrototype > Copy() const
direct solver for nxn blocked matrices
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
RCP< DirectSolver > s_
Direct solver.
virtual ~BlockedDirectSolver()
Destructor.