53#ifndef MUELU_PERMUTINGSMOOTHER_DECL_HPP
54#define MUELU_PERMUTINGSMOOTHER_DECL_HPP
56#include <Teuchos_ParameterList.hpp>
57#include <Xpetra_CrsMatrixWrap_fwd.hpp>
58#include <Xpetra_Matrix_fwd.hpp>
59#include <Xpetra_Vector_fwd.hpp>
60#include <Xpetra_VectorFactory_fwd.hpp>
61#include <Xpetra_MultiVector_fwd.hpp>
62#include <Xpetra_MultiVectorFactory_fwd.hpp>
66#include "MueLu_SmootherPrototype.hpp"
81 template <class Scalar = SmootherPrototype<>::scalar_type,
87#undef MUELU_PERMUTINGSMOOTHER_SHORT
102 PermutingSmoother(std::string
const & mapName,
const RCP<const FactoryBase> & mapFact, std::string
const & type =
"",
const Teuchos::ParameterList& paramList = Teuchos::ParameterList(), LO
const & overlap = 0, RCP<FactoryBase> permFact = Teuchos::null);
127 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
130 RCP<SmootherPrototype>
Copy()
const;
171 RCP<SmootherPrototype>
s_;
177#define MUELU_PERMUTINGSMOOTHER_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
This class first calculates row- and column permutation operators and applies a smoother to the permu...
std::string description() const
Return a simple one-line description of this object.
virtual ~PermutingSmoother()
Destructor.
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
RCP< FactoryBase > permFact_
Permutation Factory.
RCP< Matrix > permQT_
permQT matrix object
Teuchos::RCP< Matrix > diagScalingOp_
scaling matrix object
RCP< SmootherPrototype > Copy() const
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
void DeclareInput(Level ¤tLevel) const
Input.
void Setup(Level ¤tLevel)
Set up the direct solver.
LO overlap_
overlap when using the smoother in additive Schwarz mode
std::string type_
ifpack1/2-specific key phrase that denote smoother type
RCP< SmootherPrototype > s_
Smoother.
RCP< Matrix > permP_
permP matrix object
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.
Base class for smoother prototypes.
GlobalOrdinal global_ordinal_type
LocalOrdinal local_ordinal_type
Namespace for MueLu classes and methods.