MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_InterfaceMappingTransferFactory_def.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_INTERFACEMAPPINGTRANSFERFACTORY_DEF_HPP_
11 #define MUELU_INTERFACEMAPPINGTRANSFERFACTORY_DEF_HPP_
12 
14 
15 namespace MueLu {
16 
17 template <class LocalOrdinal, class GlobalOrdinal, class Node>
19  RCP<ParameterList> validParamList = rcp(new ParameterList());
20  validParamList->set<RCP<const FactoryBase>>("CoarseDualNodeID2PrimalNodeID", Teuchos::null, "Generating factory of the CoarseDualNodeID2PrimalNodeID map");
21  return validParamList;
22 }
23 
24 template <class LocalOrdinal, class GlobalOrdinal, class Node>
26  Input(fineLevel, "CoarseDualNodeID2PrimalNodeID");
27 }
28 
29 template <class LocalOrdinal, class GlobalOrdinal, class Node>
31  Monitor m(*this, "Interface Mapping transfer factory");
32 
33  RCP<std::map<LocalOrdinal, LocalOrdinal>> coarseLagr2Dof = Get<RCP<std::map<LocalOrdinal, LocalOrdinal>>>(fineLevel, "CoarseDualNodeID2PrimalNodeID");
34  Set(coarseLevel, "DualNodeID2PrimalNodeID", coarseLagr2Dof);
35 }
36 
37 } // namespace MueLu
38 
39 #endif /* MUELU_INTERFACEMAPPINGTRANSFERFACTORY_DEF_HPP_ */
void Build(Level &fineLevel, Level &coarseLevel) const override
Build an object with this factory.
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
RCP< const ParameterList > GetValidParameterList() const override
Return a const parameter list of valid parameters that setParameterList() will accept.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
Timer to be used in non-factories.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const override
Input.