MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_SegregatedAFactory_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_SEGREGATEDAFACTORY_DECL_HPP
11#define MUELU_SEGREGATEDAFACTORY_DECL_HPP
12
14
15namespace MueLu {
16
71template <class Scalar = DefaultScalar,
74 class Node = DefaultNode>
76#undef MUELU_SEGREGATEDAFACTORY_SHORT
78
79 public:
81
82
83 RCP<const ParameterList> GetValidParameterList() const override;
84
85 void DeclareInput(Level& currentLevel) const override;
86
88
94 void Build(Level& currentLevel) const override;
95
96 private:
97 void BuildBasedOnBlockmap(Level& currentLevel) const;
98
99 void BuildBasedOnMapPair(Level& currentLevel) const;
100
101 // RCP<const Map> CreateRedundantMaps(Teuchos::RCP<const Map> localDropMap, Teuchos::RCP<const Matrix> Ain) const;
102
103}; // class SegregatedAFactory
104
105} // namespace MueLu
106
107#define MUELU_SEGREGATEDAFACTORY_SHORT
108#endif // MUELU_SEGREGATEDAFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
Factory for building a new "segregated" A operator. Here, "segregated" means that the user provides s...
void Build(Level &currentLevel) const override
Build method.
RCP< const ParameterList > GetValidParameterList() const override
Input.
void BuildBasedOnMapPair(Level &currentLevel) const
void DeclareInput(Level &currentLevel) const override
Specifies the data that this class needs, and the factories that generate that data.
void BuildBasedOnBlockmap(Level &currentLevel) const
Base class for factories that use one level (currentLevel).
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar