MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_ReplicatePFactory_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_REPLICATEPFACTORY_DECL_HPP
11 #define MUELU_REPLICATEPFACTORY_DECL_HPP
12 
14 
15 #include <Xpetra_Matrix_fwd.hpp>
16 
17 #include "MueLu_ConfigDefs.hpp"
18 #include "MueLu_PFactory.hpp"
20 
21 #include "MueLu_Level_fwd.hpp"
22 
23 namespace MueLuTests {
24 // Forward declaration of friend tester class used to UnitTest ReplicatePFactory
25 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
27 } // namespace MueLuTests
28 
29 namespace MueLu {
30 
71 template <class Scalar = DefaultScalar,
74  class Node = DefaultNode>
75 class ReplicatePFactory : public PFactory {
76 #undef MUELU_REPLICATEPFACTORY_SHORT
77 #include "MueLu_UseShortNames.hpp"
78 
79  public:
81 
83 
84 
87 
89  virtual ~ReplicatePFactory() {}
91 
93 
95 
96 
97  void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
98 
100 
102 
103 
104  void Build(Level& fineLevel, Level& coarseLevel) const;
105  void BuildP(Level& fineLevel, Level& coarseLevel) const;
106 
108 
109  private:
110  int numPDEs_;
111 
112 }; // class ReplicatePFactory
113 
114 } // namespace MueLu
115 
116 #define MUELU_REPLICATEPFACTORY_SHORT
117 #endif // MUELU_REPLICATEPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
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
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Prolongator factory that replicates &#39;Psubblock&#39; matrix to create new prolongator suitable for PDE sys...
Factory that provides an interface for a concrete implementation of a prolongation operator...
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.