MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_UserPFactory_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_USERPFACTORY_DECL_HPP
11#define MUELU_USERPFACTORY_DECL_HPP
12
13#include <Xpetra_MultiVectorFactory_fwd.hpp>
14
15#include "MueLu_ConfigDefs.hpp"
17#include "MueLu_PFactory.hpp"
19
20#include "MueLu_Level_fwd.hpp"
21
22namespace MueLu {
23
24template <class Scalar = DefaultScalar,
27 class Node = DefaultNode>
28class UserPFactory : public PFactory {
29#undef MUELU_USERPFACTORY_SHORT
31
32 public:
34
35
38
40 virtual ~UserPFactory() {}
42
43 RCP<const ParameterList> GetValidParameterList() const;
44
46
47
48 void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
49
51
53
54
55 void Build(Level& fineLevel, Level& coarseLevel) const;
56 void BuildP(Level& fineLevel, Level& coarseLevel) const;
57
59
60}; // class UserPFactory
61
62} // namespace MueLu
63
64#define MUELU_USERPFACTORY_SHORT
65#endif // MUELU_USERPFACTORY_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.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
virtual ~UserPFactory()
Destructor.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar