10 #ifndef MUELU_FACTORYMANAGER_DECL_HPP
11 #define MUELU_FACTORYMANAGER_DECL_HPP
71 #undef MUELU_FACTORYMANAGER_SHORT
117 bool hasFactory(
const std::string& varName)
const;
132 #ifdef HAVE_MUELU_DEBUG
133 void ResetDebugData()
const;
174 #define MUELU_FACTORYMANAGER_SHORT
175 #endif // MUELU_FACTORYMANAGER_DECL_HPP
This class specifies the default factory that should generate some data on a Level if the data does n...
MueLu::DefaultLocalOrdinal LocalOrdinal
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
FactoryManager()
Constructor.
void SetKokkosRefactor(const bool useKokkos)
const RCP< const FactoryBase > GetDefaultFactory(const std::string &varName) const
bool hasFactory(const std::string &varName) const
Check.
const RCP< const FactoryBase > GetFactory(const std::string &varName) const
Get factory associated with a particular data name.
const RCP< const FactoryBase > SetAndReturnDefaultFactory(const std::string &varName, const RCP< const FactoryBase > &factory) const
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that provides default factories within Needs class.
bool GetKokkosRefactor() const
void SetFactory(const std::string &varName, const RCP< const FactoryBase > &factory)
Set Factory.
const RCP< FactoryBase > GetFactoryNonConst(const std::string &varName)
Get factory associated with a particular data name (NONCONST version)
virtual ~FactoryManager()
Destructor.
std::map< std::string, RCP< const FactoryBase > > factoryTable_
User-defined factories.
std::map< std::string, RCP< const FactoryBase > > defaultFactoryTable_
Table that holds default factories.
bool useKokkos_
Whether or not to use kokkos factories.