MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_CombinePFactory_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_COMBINEPFACTORY_DECL_HPP
11 #define MUELU_COMBINEPFACTORY_DECL_HPP
12 
14 
15 #include <Xpetra_MultiVector.hpp>
16 #include <Xpetra_Matrix_fwd.hpp>
17 
18 #include "MueLu_ConfigDefs.hpp"
19 #include "MueLu_PFactory.hpp"
21 
22 #include "MueLu_Level_fwd.hpp"
23 
24 namespace MueLuTests {
25 // Forward declaration of friend tester class used to UnitTest CombinePFactory
26 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
28 } // namespace MueLuTests
29 
30 namespace MueLu {
31 
90 template <class Scalar = DefaultScalar,
93  class Node = DefaultNode>
94 class CombinePFactory : public PFactory {
95 #undef MUELU_COMBINEPFACTORY_SHORT
96 #include "MueLu_UseShortNames.hpp"
97 
98  public:
100 
102 
103 
106 
108  virtual ~CombinePFactory() {}
110 
112 
114 
115 
116  void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
117 
119 
121 
122 
123  void Build(Level& fineLevel, Level& coarseLevel) const;
124  void BuildP(Level& fineLevel, Level& coarseLevel) const;
125 
127 
128  private:
129  int numPDEs_;
130 
131 }; // class CombinePFactory
132 
133 } // namespace MueLu
134 
135 #define MUELU_COMBINEPFACTORY_SHORT
136 #endif // MUELU_COMBINEPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
MueLu::DefaultNode Node
virtual ~CombinePFactory()
Destructor.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
Prolongator factory that replicates &#39;Psubblock&#39; matrix to create new prolongator suitable for PDE sys...
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...
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.