MueLu Version of the Day
Loading...
Searching...
No Matches
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
13#include <Teuchos_SerialDenseVector.hpp>
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
24namespace MueLuTests {
25// Forward declaration of friend tester class used to UnitTest CombinePFactory
26template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
28} // namespace MueLuTests
29
30namespace MueLu {
31
90template <class Scalar = DefaultScalar,
93 class Node = DefaultNode>
94class CombinePFactory : public PFactory {
95#undef MUELU_COMBINEPFACTORY_SHORT
97
98 public:
100
102
103
106
108 virtual ~CombinePFactory() {}
110
111 RCP<const ParameterList> GetValidParameterList() const;
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:
130
131}; // class CombinePFactory
132
133} // namespace MueLu
134
135#define MUELU_COMBINEPFACTORY_SHORT
136#endif // MUELU_COMBINEPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Prolongator factory that replicates 'Psubblock' matrix to create new prolongator suitable for PDE sys...
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Class that holds all level-specific information.
Factory that provides an interface for a concrete implementation of a prolongation operator.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar