MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_TentativePFactory_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_TENTATIVEPFACTORY_DECL_HPP
11#define MUELU_TENTATIVEPFACTORY_DECL_HPP
12
13#include <Teuchos_ScalarTraits.hpp>
14#include <Teuchos_SerialDenseMatrix.hpp>
15#include <Teuchos_SerialQRDenseSolver.hpp>
16
17#include <Xpetra_CrsGraphFactory_fwd.hpp>
18#include <Xpetra_CrsMatrix_fwd.hpp>
19#include <Xpetra_Matrix_fwd.hpp>
20#include <Xpetra_MultiVector_fwd.hpp>
21#include <Xpetra_MapFactory_fwd.hpp>
22#include <Xpetra_Map_fwd.hpp>
23#include <Xpetra_MultiVectorFactory_fwd.hpp>
24#include <Xpetra_Import_fwd.hpp>
25#include <Xpetra_ImportFactory_fwd.hpp>
26#include <Xpetra_CrsMatrixWrap_fwd.hpp>
27
28#include "MueLu_ConfigDefs.hpp"
29
32#include "MueLu_Level_fwd.hpp"
34#include "MueLu_PFactory.hpp"
36
37namespace MueLu {
38
78template <class Scalar = DefaultScalar,
81 class Node = DefaultNode>
83#undef MUELU_TENTATIVEPFACTORY_SHORT
85
86 public:
88
89
92
96
97 RCP<const ParameterList> GetValidParameterList() const override;
98
100
101
102 void DeclareInput(Level& fineLevel, Level& coarseLevel) const override;
103
105
107
108
109 void Build(Level& fineLevel, Level& coarseLevel) const override;
110 void BuildP(Level& fineLevel, Level& coarseLevel) const override;
111
113
114 private:
115 void BuildPuncoupled(RCP<Matrix> A, RCP<Aggregates> aggregates, RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
116 RCP<const Map> coarseMap, RCP<Matrix>& Ptentative, RCP<MultiVector>& coarseNullspace, const int levelID) const;
117 void BuildPcoupled(RCP<Matrix> A, RCP<Aggregates> aggregates, RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
118 RCP<const Map> coarseMap, RCP<Matrix>& Ptentative, RCP<MultiVector>& coarseNullspace) const;
119 void BuildPuncoupledBlockCrs(RCP<Matrix> A, RCP<Aggregates> aggregates, RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
120 RCP<const Map> coarseMap, RCP<Matrix>& Ptentative, RCP<MultiVector>& coarseNullspace, const int levelID) const;
121
122 mutable bool bTransferCoordinates_ = false;
123
124}; // class TentativePFactory
125
126} // namespace MueLu
127
128// TODO: noQR_
129
130#define MUELU_TENTATIVEPFACTORY_SHORT
131#endif // MUELU_TENTATIVEPFACTORY_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.
Factory for building tentative prolongator.
void BuildPuncoupled(RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace, const int levelID) const
void DeclareInput(Level &fineLevel, Level &coarseLevel) const override
Input.
~TentativePFactory() override
Destructor.
TentativePFactory()
Constructor.
RCP< const ParameterList > GetValidParameterList() const override
Return a const parameter list of valid parameters that setParameterList() will accept.
void BuildPuncoupledBlockCrs(RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace, const int levelID) const
void BuildP(Level &fineLevel, Level &coarseLevel) const override
Abstract Build method.
void Build(Level &fineLevel, Level &coarseLevel) const override
Build an object with this factory.
void BuildPcoupled(RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace) const
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar