MueLu Version of the Day
Loading...
Searching...
No Matches
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
13#include <Teuchos_SerialDenseVector.hpp>
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
23namespace MueLuTests {
24// Forward declaration of friend tester class used to UnitTest ReplicatePFactory
25template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
27} // namespace MueLuTests
28
29namespace MueLu {
30
71template <class Scalar = DefaultScalar,
74 class Node = DefaultNode>
76#undef MUELU_REPLICATEPFACTORY_SHORT
78
79 public:
81
83
84
87
89 virtual ~ReplicatePFactory() {}
91
92 RCP<const ParameterList> GetValidParameterList() const;
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:
111
112}; // class ReplicatePFactory
113
114} // namespace MueLu
115
116#define MUELU_REPLICATEPFACTORY_SHORT
117#endif // MUELU_REPLICATEPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
Factory that provides an interface for a concrete implementation of a prolongation operator.
Prolongator factory that replicates 'Psubblock' matrix to create new prolongator suitable for PDE sys...
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar