MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_DemoFactory_decl.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // MueLu: A package for multigrid based preconditioning
4 //
5 // Copyright 2012 NTESS and the MueLu contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef MUELU_DEMOFACTORY_DECL_HPP
11 #define MUELU_DEMOFACTORY_DECL_HPP
12 
13 #include "MueLu_ConfigDefs.hpp"
16 
17 namespace MueLu {
18 
24 template <class Scalar = DefaultScalar,
27  class Node = DefaultNode>
29 #undef MUELU_DEMOFACTORY_SHORT
30 #include "MueLu_UseShortNames.hpp"
31 
32  public:
34 
35 
37  DemoFactory();
38 
40  virtual ~DemoFactory();
41 
43 
45 
46 
52  void DeclareInput(Level &currentLevel) const;
53 
55 
57 
58 
60  void Build(Level &currentLevel) const;
61 
63 
64  private:
65  // TODO add member variables
66 
67 }; // class DemoFactory
68 
69 } // namespace MueLu
70 
71 #define MUELU_DEMOFACTORY_SHORT
72 #endif // MUELU_DEMOFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
virtual ~DemoFactory()
Destructor.
void DeclareInput(Level &currentLevel) const
Specifies the data that this class needs, and the factories that generate that data.
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:63
empty factory for demonstration
void Build(Level &currentLevel) const
Build an object with this factory.
Base class for factories that use one level (currentLevel).