MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_TwoLevelFactoryBase.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_TWOLEVELFACTORY_HPP
11 #define MUELU_TWOLEVELFACTORY_HPP
12 
13 #include "MueLu_ConfigDefs.hpp"
14 
15 #include "MueLu_Factory.hpp"
16 #include "MueLu_Level.hpp"
17 #include "MueLu_TimeMonitor.hpp"
18 #include "MueLu_Utilities.hpp"
19 
20 namespace MueLu {
21 
31 class TwoLevelFactoryBase : public Factory {
32  public:
34 
35 
38 
40  virtual ~TwoLevelFactoryBase();
41 
43 
45 
46 
52  virtual void DeclareInput(Level& fineLevel, Level& coarseLevel) const = 0;
53 
55  virtual void CallDeclareInput(Level& requestedLevel) const;
56 
58 
60 
61 
63  virtual void Build(Level& fineLevel, Level& coarseLevel) const = 0;
64 
66  virtual void CallBuild(Level& requestedLevel) const;
67 
69 
70 }; // class TwoLevelFactoryBase
71 
72 } // namespace MueLu
73 
74 #define MUELU_TWOLEVELFACTORY_SHORT
75 #endif // ifndef MUELU_TWOLEVELFACTORY_HPP
Base class for factories that use two levels (fineLevel and coarseLevel).
virtual void CallDeclareInput(Level &requestedLevel) const
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
virtual void Build(Level &fineLevel, Level &coarseLevel) const =0
Build an object with this factory.
virtual ~TwoLevelFactoryBase()
Destructor.
TwoLevelFactoryBase()
Constructor.
virtual void DeclareInput(Level &fineLevel, Level &coarseLevel) const =0
Input.
virtual void CallBuild(Level &requestedLevel) const