MueLu Version of the Day
Loading...
Searching...
No Matches
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
15namespace MueLu {
16
17template <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
24template <class LocalOrdinal, class GlobalOrdinal, class Node>
26 Input(fineLevel, "CoarseDualNodeID2PrimalNodeID");
27}
28
29template <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.
RCP< const ParameterList > GetValidParameterList() const override
Return a const parameter list of valid parameters that setParameterList() will accept.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const override
Input.
Class that holds all level-specific information.
Timer to be used in non-factories.
Namespace for MueLu classes and methods.