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 #ifndef MUELU_INTERFACEMAPPINGTRANSFERFACTORY_DEF_HPP_
2 #define MUELU_INTERFACEMAPPINGTRANSFERFACTORY_DEF_HPP_
3 
5 
6 namespace MueLu
7 {
8 
9 template <class LocalOrdinal, class GlobalOrdinal, class Node>
11 {
12  RCP<ParameterList> validParamList = rcp(new ParameterList());
13  validParamList->set<RCP<const FactoryBase>>("CoarseDualNodeID2PrimalNodeID", null, "Generating factory of the CoarseDualNodeID2PrimalNodeID map");
14  return validParamList;
15 }
16 
17 template <class LocalOrdinal, class GlobalOrdinal, class Node>
19 {
20  Input(fineLevel, "CoarseDualNodeID2PrimalNodeID");
21 }
22 
23 template <class LocalOrdinal, class GlobalOrdinal, class Node>
25 {
26  Monitor m(*this, "Interface Mapping transfer factory");
27  RCP<std::map<LocalOrdinal, LocalOrdinal>> coarseLagr2Dof = Get<RCP<std::map<LocalOrdinal, LocalOrdinal>>>(fineLevel, "CoarseDualNodeID2PrimalNodeID");
28  Set(coarseLevel, "DualNodeID2PrimalNodeID", coarseLagr2Dof);
29 }
30 
31 } // namespace MueLu
32 
33 #endif /* MUELU_INTERFACEMAPPINGTRANSFERFACTORY_DEF_HPP_ */
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
void Build(Level &fineLevel, Level &coarseLevel) const override
Build an object with this factory.
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:99
Timer to be used in non-factories.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const override
Input.