10 #ifndef MUELU_GENERICRFACTORY_DEF_HPP
11 #define MUELU_GENERICRFACTORY_DEF_HPP
18 #include "MueLu_PFactory.hpp"
25 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
29 return validParamList;
32 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
35 if (PFact1 == Teuchos::null) {
58 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
60 FactoryMonitor m(*
this,
"Call prolongator factory for calculating restrictor", coarseLevel);
63 if (PFact1 == Teuchos::null) {
79 Set(coarseLevel,
"R", R);
85 #define MUELU_GENERICRFACTORY_SHORT
86 #endif // MUELU_GENERICRFACTORY_DEF_HPP
RCP< const ParameterList > GetValidParameterList() const
Input.
T & Get(const std::string &ename, const FactoryBase *factory=NoFactory::get())
Get data without decrementing associated storage counter (i.e., read-only access). Usage: Level->Get< RCP<Matrix> >("A", factory) if factory == NULL => use default factory.
void DeclareDependencies(const FactoryBase *factory, bool bRequestOnly=false, bool bReleaseOnly=false)
Callback from FactoryBase::CallDeclareInput() and FactoryBase::DeclareInput() to declare factory depe...
Timer to be used in factories. Similar to Monitor but with additional timers.
void setRestrictionMode(bool bRestrictionMode=false)
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Class that holds all level-specific information.
bool isRestrictionModeSet()
returns restrictionMode flag
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
An exception safe way to call the method TwoLevelFactoryBase::DisableMultipleCallCheck.
const RCP< const FactoryManagerBase > GetFactoryManager()
returns the current factory manager
Factory that provides an interface for a concrete implementation of a prolongation operator...
void DeclareInput(const std::string &ename, const FactoryBase *factory, const FactoryBase *requestedBy=NoFactory::get())
Callback from FactoryBase::CallDeclareInput() and FactoryBase::DeclareInput()