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 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.
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.
Namespace for MueLu classes and methods.
LocalOrdinal local_ordinal_type
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.
void DeclareInput(Level ¤tLevel) const
Input.
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.
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
RCP< const MapExtractorClass > domainMapExtractor_
Domain map extractor (from A_ generated by AFact)
GlobalOrdinal global_ordinal_type
Xpetra::MapExtractor< Scalar, LocalOrdinal, GlobalOrdinal, Node > MapExtractorClass
RCP< const FactoryBase > AFact_
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
RCP< const ParameterList > GetValidParameterList() const
Input.
RCP< const MapExtractorClass > rangeMapExtractor_
Range map extractor (from A_ generated by AFact)
std::string description() const
Return a simple one-line description of this object.
SIMPLE smoother for 2x2 block matrices.
void Apply(MultiVector &X, MultiVector const &B, bool InitialGuessIsZero=false) const
Apply the Braess Sarazin smoother.