10 #ifndef MUELU_SIMPLESMOOTHER_DECL_HPP_
11 #define MUELU_SIMPLESMOOTHER_DECL_HPP_
24 #include "MueLu_SmootherPrototype.hpp"
41 template <class Scalar = SmootherPrototype<>::scalar_type,
42 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
43 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
44 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
48 #undef MUELU_SIMPLESMOOTHER_SHORT
102 void Apply(MultiVector &X, MultiVector
const &B,
bool InitialGuessIsZero =
false)
const;
174 #define MUELU_SIMPLESMOOTHER_SHORT
Teuchos::RCP< SmootherBase > velPredictSmoo_
Smoother for velocity prediction.
void SetSchurCompFactoryManager(RCP< FactoryManager > FactManager)
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos)
Add a factory manager at a specific position.
MueLu::DefaultLocalOrdinal LocalOrdinal
SimpleSmoother()
Constructor.
std::string type_
smoother type
Teuchos::RCP< SmootherBase > schurCompSmoo_
Smoother for SchurComplement equation.
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 FactoryManagerBase > > FactManager_
Vector of internal factory managers.
void Setup(Level ¤tLevel)
Setup routine.
Teuchos::RCP< Matrix > G_
Pressure gradient operator.
Base class for smoother prototypes.
void DeclareInput(Level ¤tLevel) const
Input.
void SetVelocityPredictionFactoryManager(RCP< FactoryManager > FactManager)
virtual ~SimpleSmoother()
Destructor.
RCP< SmootherPrototype > Copy() const
RCP< Matrix > A_
Internal blocked operator "A" generated by AFact_.
Teuchos::RCP< Matrix > F_
Fluid operator.
RCP< const ParameterList > GetValidParameterList() const
Input.
std::string description() const
Return a simple one-line description of this object.
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Teuchos::RCP< Vector > diagFinv_
Inverse diagonal of fluid operator (vector).
Teuchos::RCP< Matrix > Z_
Pressure stabilization term or null block.
Teuchos::RCP< Matrix > D_
Divergence operator.
void Apply(MultiVector &X, MultiVector const &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.
RCP< const MapExtractorClass > domainMapExtractor_
Domain map extractor (from A_ generated by AFact)
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
RCP< const FactoryBase > AFact_
RCP< const MapExtractorClass > rangeMapExtractor_
Range map extractor (from A_ generated by AFact)
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
SIMPLE smoother for 2x2 block matrices.