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