MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_EminPFactory_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_EMINPFACTORY_DECL_HPP
11#define MUELU_EMINPFACTORY_DECL_HPP
12
13#include "MueLu_ConfigDefs.hpp"
14
15#include <Xpetra_Matrix_fwd.hpp>
16#include <Xpetra_StridedMapFactory_fwd.hpp>
17
19
23#include "MueLu_Level_fwd.hpp"
25#include "MueLu_PFactory.hpp"
28
29namespace MueLu {
30
37template <class Scalar = DefaultScalar,
40 class Node = DefaultNode>
41class EminPFactory : public PFactory {
42#undef MUELU_EMINPFACTORY_SHORT
44
45 public:
47
48
51
53 virtual ~EminPFactory() {}
54
56
57 RCP<const ParameterList> GetValidParameterList() const;
58
60
61
62 void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
63
65
67
68
74 void Build(Level& fineLevel, Level& coarseLevel) const;
75 void BuildP(Level& fineLevel, Level& coarseLevel) const;
76
78
79 static
80 typename Teuchos::ScalarTraits<Scalar>::magnitudeType
81 ComputeProlongatorEnergyNorm(RCP<Xpetra::Matrix<Scalar, LocalOrdinal, GlobalOrdinal, Node>>& A,
82 RCP<Xpetra::Matrix<Scalar, LocalOrdinal, GlobalOrdinal, Node>>& P,
83 Teuchos::FancyOStream& out);
84
85}; // class EminPFactory
86
87} // namespace MueLu
88
89#define MUELU_EMINPFACTORY_SHORT
90#endif // MUELU_EMINPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Factory for building Energy Minimization prolongators.
void Build(Level &fineLevel, Level &coarseLevel) const
Build method.
virtual ~EminPFactory()
Destructor.
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
static Teuchos::ScalarTraits< Scalar >::magnitudeType ComputeProlongatorEnergyNorm(RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &A, RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &P, Teuchos::FancyOStream &out)
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Class that holds all level-specific information.
Factory that provides an interface for a concrete implementation of a prolongation operator.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar