MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_RebalanceMapFactory_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_REBALANCEMAPFACTORY_DECL_HPP_
11 #define MUELU_REBALANCEMAPFACTORY_DECL_HPP_
12 
15 #include <Xpetra_Import_fwd.hpp>
17 
20 
21 #include "MueLu_Level_fwd.hpp"
23 
24 namespace MueLu {
25 
31 template <class LocalOrdinal = DefaultLocalOrdinal,
33  class Node = DefaultNode>
35  typedef DefaultScalar Scalar; // FIXME this is just a dummy scalar for being able to access Xpetra::Matrix
36 
37 #undef MUELU_REBALANCEMAPFACTORY_SHORT
38 #include "MueLu_UseShortNames.hpp"
39 
40  public:
42 
43 
46 
48  virtual ~RebalanceMapFactory() {}
50 
52 
54 
55  void DeclareInput(Level &level) const;
57 
59 
60  void Build(Level &level) const;
61 
63 };
64 
65 } // namespace MueLu
66 
67 #define MUELU_REBALANCEMAPFACTORY_SHORT
68 
69 #endif /* MUELU_REBALANCEMAPFACTORY_DECL_HPP_ */
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
MueLu::DefaultNode Node
void Build(Level &level) const
Build an object with this factory.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
void DeclareInput(Level &level) const
Specifies the data that this class needs, and the factories that generate that data.
Factory which rebalances a map on current level using the Importer object generated by the Repartitio...
Base class for factories that use one level (currentLevel).