MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_TopRAPFactory_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/*
11 * MueLu_TopRAPFactory_decl.hpp
12 *
13 * Created on: Jan 25, 2016
14 * Author: tawiesn
15 */
16
17#ifndef PACKAGES_MUELU_SRC_MUECENTRAL_MUELU_TOPRAPFACTORY_DECL_HPP_
18#define PACKAGES_MUELU_SRC_MUECENTRAL_MUELU_TOPRAPFACTORY_DECL_HPP_
19
20#include "MueLu_ConfigDefs.hpp"
21
22//#include "MueLu_FactoryManager_fwd.hpp"
24#include "MueLu_Level_fwd.hpp"
26//#include "MueLu_Hierarchy_fwd.hpp"
27//#include "MueLu_HierarchyManager_fwd.hpp"
28
29namespace MueLu {
30
31template <class Scalar = DefaultScalar,
34 class Node = DefaultNode>
36#undef MUELU_TOPRAPFACTORY_SHORT
38
39 public:
40 TopRAPFactory(RCP<const FactoryManagerBase> parentFactoryManager);
41 TopRAPFactory(RCP<const FactoryManagerBase> parentFactoryManagerFine, RCP<const FactoryManagerBase> parentFactoryManagerCoarse);
42
43 virtual ~TopRAPFactory();
44
45 void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
46
47 void Build(Level& fineLevel, Level& coarseLevel) const;
48
49 private:
50 RCP<const FactoryBase> PFact_;
51 RCP<const FactoryBase> RFact_;
52 RCP<const FactoryBase> AcFact_;
53};
54
55} // namespace MueLu
56
57#define MUELU_TOPRAPFACTORY_SHORT
58#endif /* PACKAGES_MUELU_SRC_MUECENTRAL_MUELU_TOPRAPFACTORY_DECL_HPP_ */
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Class that holds all level-specific information.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
RCP< const FactoryBase > AcFact_
RCP< const FactoryBase > RFact_
RCP< const FactoryBase > PFact_
Base class for factories that use two levels (fineLevel and coarseLevel).
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar