47#ifndef MUELU_SIMPLESMOOTHER_DECL_HPP_
48#define MUELU_SIMPLESMOOTHER_DECL_HPP_
53#include <Teuchos_ParameterList.hpp>
56#include <Xpetra_MapExtractor_fwd.hpp>
57#include <Xpetra_MultiVectorFactory_fwd.hpp>
58#include <Xpetra_CrsMatrixWrap_fwd.hpp>
59#include <Xpetra_Matrix_fwd.hpp>
63#include "MueLu_SmootherPrototype.hpp"
83 template <class Scalar = SmootherPrototype<>::scalar_type,
91#undef MUELU_SIMPLESMOOTHER_SHORT
146 void Apply(MultiVector &X, MultiVector
const &B,
bool InitialGuessIsZero =
false)
const;
149 RCP<SmootherPrototype>
Copy()
const;
190 Teuchos::RCP<Matrix>
F_;
193 Teuchos::RCP<Matrix>
G_;
196 Teuchos::RCP<Matrix>
D_;
199 Teuchos::RCP<Matrix>
Z_;
220#define MUELU_SIMPLESMOOTHER_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
SIMPLE smoother for 2x2 block matrices.
RCP< Matrix > A_
Internal blocked operator "A" generated by AFact_.
void SetVelocityPredictionFactoryManager(RCP< FactoryManager > FactManager)
void Setup(Level ¤tLevel)
Setup routine.
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
std::string description() const
Return a simple one-line description of this object.
RCP< const FactoryBase > AFact_
void DeclareInput(Level ¤tLevel) const
Input.
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
Teuchos::RCP< Matrix > Z_
Pressure stabilization term or null block.
RCP< const ParameterList > GetValidParameterList() const
Input.
std::vector< Teuchos::RCP< const FactoryManagerBase > > FactManager_
Vector of internal factory managers.
Teuchos::RCP< Matrix > D_
Divergence operator.
std::string type_
smoother type
virtual ~SimpleSmoother()
Destructor.
RCP< SmootherPrototype > Copy() const
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
void AddFactoryManager(RCP< const FactoryManagerBase > FactManager, int pos)
Add a factory manager at a specific position.
Teuchos::RCP< SmootherBase > schurCompSmoo_
Smoother for SchurComplement equation.
void Apply(MultiVector &X, MultiVector const &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.
Teuchos::RCP< Matrix > G_
Pressure gradient operator.
Teuchos::RCP< SmootherBase > velPredictSmoo_
Smoother for velocity prediction.
RCP< const MapExtractorClass > rangeMapExtractor_
Range map extractor (from A_ generated by AFact)
Teuchos::RCP< Matrix > F_
Fluid operator.
Teuchos::RCP< Vector > diagFinv_
Inverse diagonal of fluid operator (vector).
void SetSchurCompFactoryManager(RCP< FactoryManager > FactManager)
SimpleSmoother()
Constructor.
RCP< const MapExtractorClass > domainMapExtractor_
Domain map extractor (from A_ generated by AFact)
Base class for smoother prototypes.
GlobalOrdinal global_ordinal_type
LocalOrdinal local_ordinal_type
Namespace for MueLu classes and methods.