10 #ifndef MUELU_BRAESSSARAZINSMOOTHER_DECL_HPP_
11 #define MUELU_BRAESSSARAZINSMOOTHER_DECL_HPP_
23 #include "MueLu_SmootherPrototype.hpp"
39 template <class Scalar = SmootherPrototype<>::scalar_type,
40 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
41 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
42 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
44 #undef MUELU_BRAESSSARAZINSMOOTHER_SHORT
78 void Apply(MultiVector &X,
const MultiVector &B,
bool InitialGuessIsZero =
false)
const;
103 std::string
type_ =
"Braess Sarazin";
128 #define MUELU_BRAESSSARAZINSMOOTHER_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
RCP< Matrix > A00_
matrices
BraessSarazin smoother for 2x2 block matrices.
RCP< Vector > D_
Inverse to approximation to block (0,0). Here, D_ = omega*inv(diag(A(0,0)))
std::string type_
smoother type
RCP< const MapExtractor > domainMapExtractor_
domain map extractor (from A_ generated by AFact)
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
RCP< Matrix > A_
block operator
Base class for smoother prototypes.
RCP< SmootherPrototype > Copy() const
RCP< Matrix > S_
Schur complement.
RCP< Matrix > A01_
Block (0,1) [typically, pressure gradient operator].
void DeclareInput(Level ¤tLevel) const
Input.
MueLu::DefaultGlobalOrdinal GlobalOrdinal
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Class that holds all level-specific information.
RCP< Matrix > A11_
Block (1,1) [typically, pressure stabilization term or null block].
RCP< const ParameterList > GetValidParameterList() const
Input.
RCP< const FactoryBase > AFact_
A Factory.
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos=0)
Add a factory manager for BraessSarazin internal SchurComplement handling.
void Setup(Level ¤tLevel)
Setup routine.
RCP< Matrix > A10_
Block (1,0) [typically, divergence operator].
void Apply(MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.
std::string description() const
Return a simple one-line description of this object.
Teuchos::RCP< SmootherBase > smoo_
Smoother for SchurComplement equation.
RCP< const MapExtractor > rangeMapExtractor_
range map extractor (from A_ generated by AFact)
RCP< const FactoryManagerBase > FactManager_
Factory manager for creating the Schur Complement.