17 #ifndef MUELU_PERMUTINGSMOOTHER_DECL_HPP
18 #define MUELU_PERMUTINGSMOOTHER_DECL_HPP
29 #include "MueLu_SmootherPrototype.hpp"
43 template <class Scalar = SmootherPrototype<>::scalar_type,
44 class LocalOrdinal =
typename SmootherPrototype<Scalar>::local_ordinal_type,
45 class GlobalOrdinal =
typename SmootherPrototype<Scalar, LocalOrdinal>::global_ordinal_type,
46 class Node =
typename SmootherPrototype<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
48 #undef MUELU_PERMUTINGSMOOTHER_SHORT
87 void Apply(MultiVector& X,
const MultiVector& B,
bool InitialGuessIsZero =
false)
const;
137 #define MUELU_PERMUTINGSMOOTHER_SHORT
std::string description() const
Return a simple one-line description of this object.
MueLu::DefaultLocalOrdinal LocalOrdinal
RCP< SmootherPrototype > Copy() const
virtual ~PermutingSmoother()
Destructor.
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.
This class first calculates row- and column permutation operators and applies a smoother to the permu...
LO overlap_
overlap when using the smoother in additive Schwarz mode
void Setup(Level ¤tLevel)
Set up the direct solver.
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Teuchos::RCP< Matrix > diagScalingOp_
scaling matrix object
RCP< FactoryBase > permFact_
Permutation Factory.
void DeclareInput(Level ¤tLevel) const
Input.
RCP< Matrix > permP_
permP matrix object
std::string type_
ifpack1/2-specific key phrase that denote smoother type
void print(Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const
Print the object with some verbosity level to an FancyOStream object.
PermutingSmoother(std::string const &mapName, const RCP< const FactoryBase > &mapFact, std::string const &type="", const Teuchos::ParameterList ¶mList=Teuchos::ParameterList(), LO const &overlap=0, RCP< FactoryBase > permFact=Teuchos::null)
Constructor.
size_t getNodeSmootherComplexity() const
Get a rough estimate of cost per iteration.
RCP< Matrix > permQT_
permQT matrix object
RCP< SmootherPrototype > s_
Smoother.