MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_SubBlockAFactory_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_SUBBLOCKAFACTORY_DECL_HPP_
11#define MUELU_SUBBLOCKAFACTORY_DECL_HPP_
12
13#include <Xpetra_Map_fwd.hpp>
14#include <Xpetra_MapExtractor_fwd.hpp>
15#include <Xpetra_StridedMap_fwd.hpp>
16#include <Xpetra_StridedMapFactory_fwd.hpp>
17
18#include "MueLu_ConfigDefs.hpp"
21
22namespace MueLu {
23
53template <class Scalar = DefaultScalar,
56 class Node = DefaultNode>
58#undef MUELU_SUBBLOCKAFACTORY_SHORT
60
61 public:
63
64
66 SubBlockAFactory() = default;
67
69 virtual ~SubBlockAFactory() = default;
71
73
74
75 RCP<const ParameterList> GetValidParameterList() const override;
76
77 void DeclareInput(Level& currentLevel) const override;
78
80
82
83
100 void Build(Level& currentLevel) const override;
101
103
104 private:
105 bool CheckForUserSpecifiedBlockInfo(bool bRange, std::vector<size_t>& stridingInfo, LocalOrdinal& stridedBlockId) const;
106
107}; // class SubBlockAFactory
108
109} // namespace MueLu
110
111#define MUELU_SUBBLOCKAFACTORY_SHORT
112#endif /* MUELU_SUBBLOCKAFACTORY_DECL_HPP_ */
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
Base class for factories that use one level (currentLevel).
Factory for building a thresholded operator.
void DeclareInput(Level &currentLevel) const override
Specifies the data that this class needs, and the factories that generate that data.
bool CheckForUserSpecifiedBlockInfo(bool bRange, std::vector< size_t > &stridingInfo, LocalOrdinal &stridedBlockId) const
void Build(Level &currentLevel) const override
Build an object with this factory.
virtual ~SubBlockAFactory()=default
Destructor.
SubBlockAFactory()=default
Constructor.
RCP< const ParameterList > GetValidParameterList() const override
Input.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar