MueLu Version of the Day
Loading...
Searching...
No Matches
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
17namespace MueLu {
18
24template <class Scalar = DefaultScalar,
27 class Node = DefaultNode>
29#undef MUELU_DEMOFACTORY_SHORT
31
32 public:
34
35
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
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
empty factory for demonstration
void DeclareInput(Level &currentLevel) const
Specifies the data that this class needs, and the factories that generate that data.
virtual ~DemoFactory()
Destructor.
void Build(Level &currentLevel) const
Build an object with this factory.
Class that holds all level-specific information.
Base class for factories that use one level (currentLevel).
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar