MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_UserPFactory_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_USERPFACTORY_DECL_HPP
11 #define MUELU_USERPFACTORY_DECL_HPP
12 
14 
15 #include "MueLu_ConfigDefs.hpp"
16 #include "MueLu_PerfUtils_fwd.hpp"
17 #include "MueLu_PFactory.hpp"
19 
20 #include "MueLu_Level_fwd.hpp"
21 
22 namespace MueLu {
23 
24 template <class Scalar = DefaultScalar,
27  class Node = DefaultNode>
28 class UserPFactory : public PFactory {
29 #undef MUELU_USERPFACTORY_SHORT
30 #include "MueLu_UseShortNames.hpp"
31 
32  public:
34 
35 
38 
40  virtual ~UserPFactory() {}
42 
44 
46 
47 
48  void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
49 
51 
53 
54 
55  void Build(Level& fineLevel, Level& coarseLevel) const;
56  void BuildP(Level& fineLevel, Level& coarseLevel) const;
57 
59 
60 }; // class UserPFactory
61 
62 } // namespace MueLu
63 
64 #define MUELU_USERPFACTORY_SHORT
65 #endif // MUELU_USERPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
MueLu::DefaultNode Node
virtual ~UserPFactory()
Destructor.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Factory that provides an interface for a concrete implementation of a prolongation operator...