MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_TopSmootherFactory_decl.hpp
Go to the documentation of this file.
1 /*
2  * MueLu_TopSmootherFactory_decl.hpp
3  *
4  * Created on: Jan 25, 2016
5  * Author: tawiesn
6  */
7 
8 #ifndef PACKAGES_MUELU_SRC_MUECENTRAL_MUELU_TOPSMOOTHERFACTORY_DECL_HPP_
9 #define PACKAGES_MUELU_SRC_MUECENTRAL_MUELU_TOPSMOOTHERFACTORY_DECL_HPP_
10 
11 #include "MueLu_ConfigDefs.hpp"
12 
14 #include "MueLu_Level_fwd.hpp"
19 //#include "MueLu_TwoLevelFactoryBase.hpp"
20 //#include "MueLu_Hierarchy_fwd.hpp"
21 //#include "MueLu_HierarchyManager_fwd.hpp"
22 
23 namespace MueLu {
24 
25 template <class Scalar = DefaultScalar,
28  class Node = DefaultNode>
29 class TopSmootherFactory : public SingleLevelFactoryBase { // TODO: inherit from SmootherFactoryBase ?
30 #undef MUELU_TOPSMOOTHERFACTORY_SHORT
31 #include "MueLu_UseShortNames.hpp"
32 
33  public:
34  TopSmootherFactory(RCP<const FactoryManagerBase> parentFactoryManager, const std::string& varName);
35 
36  virtual ~TopSmootherFactory();
37 
38  void DeclareInput(Level& level) const;
39 
40  void Build(Level& level) const;
41 
42  private:
45 };
46 
47 } // namespace MueLu
48 
49 #define MUELU_TOPSMOOTHERFACTORY_SHORT
50 #endif /* PACKAGES_MUELU_SRC_MUECENTRAL_MUELU_TOPSMOOTHERFACTORY_DECL_HPP_ */
void Build(Level &level) const
Build an object with this factory.
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
MueLu::DefaultNode Node
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:99
RCP< const FactoryBase > preSmootherFact_
RCP< const FactoryBase > postSmootherFact_
Base class for factories that use one level (currentLevel).
void DeclareInput(Level &level) const
Specifies the data that this class needs, and the factories that generate that data.
TopSmootherFactory(RCP< const FactoryManagerBase > parentFactoryManager, const std::string &varName)