| 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" |
| 23 |
#include "MueLu_FactoryManagerBase.hpp" |
| 24 |
#include "MueLu_Level_fwd.hpp" |
| 25 |
#include "MueLu_TwoLevelFactoryBase.hpp" |
| 26 |
//#include "MueLu_Hierarchy_fwd.hpp" |
| 27 |
//#include "MueLu_HierarchyManager_fwd.hpp" |
| 28 |
|
| 29 |
namespace MueLu { |
| 30 |
|
| 31 |
template <class Scalar = DefaultScalar, |
| 32 |
class LocalOrdinal = DefaultLocalOrdinal, |
| 33 |
class GlobalOrdinal = DefaultGlobalOrdinal, |
| 34 |
class Node = DefaultNode> |
| 35 |
class TopRAPFactory : public TwoLevelFactoryBase { |
| 36 |
#undef MUELU_TOPRAPFACTORY_SHORT |
| 37 |
#include "MueLu_UseShortNames.hpp" |
| 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_ */ |