MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_MatrixFreeTentativePFactory_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_MATRIXFREETENTATIVEPFACTORY_DECL_HPP
11#define MUELU_MATRIXFREETENTATIVEPFACTORY_DECL_HPP
12
13#include "MueLu_ConfigDefs.hpp"
14
16
17#include <Tpetra_KokkosCompat_ClassicNodeAPI_Wrapper.hpp>
18
19#include "Teuchos_ScalarTraits.hpp"
20
23#include "MueLu_Level_fwd.hpp"
24#include "MueLu_PFactory.hpp"
25
26namespace MueLu {
27
65template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
67 public:
70 typedef typename Node::execution_space execution_space;
71 typedef Kokkos::RangePolicy<local_ordinal_type, execution_space> range_type;
72 typedef Node node_type;
73 typedef typename Teuchos::ScalarTraits<Scalar>::coordinateType real_type;
74
75 private:
76#undef MUELU_MATRIXFREETENTATIVEPFACTORY_SHORT
78
79 public:
81
82
85
89
90 RCP<const ParameterList> GetValidParameterList() const;
91
93
94
95 void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
96
98
100
101
102 void Build(Level& fineLevel, Level& coarseLevel) const;
103 void BuildP(Level& fineLevel, Level& coarseLevel) const;
104
106};
107
108} // namespace MueLu
109
110#define MUELU_MATRIXFREETENTATIVEPFACTORY_SHORT
111#endif // MUELU_MATRIXFREETENTATIVEPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
Factory for building the matrix-free tentative restrictor.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Teuchos::ScalarTraits< Scalar >::coordinateType real_type
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
Kokkos::RangePolicy< local_ordinal_type, execution_space > range_type
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Factory that provides an interface for a concrete implementation of a prolongation operator.
Namespace for MueLu classes and methods.