MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_BlockedCoordinatesTransferFactory_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_BLOCKEDCOORDINATESTRANSFER_FACTORY_DECL_HPP
11#define MUELU_BLOCKEDCOORDINATESTRANSFER_FACTORY_DECL_HPP
12
13#include "MueLu_ConfigDefs.hpp"
15#include "Xpetra_MultiVector_fwd.hpp"
16#include "Xpetra_Matrix_fwd.hpp"
17
19
20namespace MueLu {
21
53template <class Scalar = DefaultScalar,
56 class Node = DefaultNode>
58#undef MUELU_BLOCKEDCOORDINATESTRANSFERFACTORY_SHORT
60
61 public:
63
64
74
77
78 RCP<const ParameterList> GetValidParameterList() const;
79
81
83
84
90 void DeclareInput(Level &finelevel, Level &coarseLevel) const;
91
93
95
96
98 void Build(Level &fineLevel, Level &coarseLevel) const;
99
101
103
106 void AddFactory(const RCP<const FactoryBase> &factory);
107
109 size_t NumFactories() const { return subFactories_.size(); }
110
112 private:
114 std::vector<RCP<const FactoryBase> > subFactories_;
115
116}; // class BlockedCoordinatesTransferFactory
117
118} // namespace MueLu
119
120#define MUELU_BLOCKEDCOORDINATESTRANSFERFACTORY_SHORT
121#endif // MUELU_BLOCKEDCOORDINATESTRANSFER_FACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class for transferring coordinates from a finer level to a coarser one for BlockedCrsMatrices....
std::vector< RCP< const FactoryBase > > subFactories_
list of user-defined sub Factories
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.
void DeclareInput(Level &finelevel, Level &coarseLevel) const
Specifies the data that this class needs, and the factories that generate that data.
void AddFactory(const RCP< const FactoryBase > &factory)
Add (sub) coords factory in the end of list of factories in BlockedCoordinatesTransferFactory.
Class that holds all level-specific information.
Base class for factories that use two levels (fineLevel and coarseLevel).
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar