46 #ifndef MUELU_MERGEDBLOCKEDMATRIXFACTORY_DEF_HPP_
47 #define MUELU_MERGEDBLOCKEDMATRIXFACTORY_DEF_HPP_
49 #include <Xpetra_BlockedCrsMatrix.hpp>
52 #include "MueLu_PerfUtils.hpp"
54 #include "MueLu_MergedBlockedMatrixFactory.hpp"
58 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
62 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
68 return validParamList;
72 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
74 Input(currentLevel,
"A");
77 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
92 Set(currentLevel,
"A", mergedA);
Exception indicating invalid cast attempted.
MergedBlockedMatrixFactory()
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Timer to be used in factories. Similar to Monitor but with additional timers.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
RCP< const ParameterList > GetValidParameterList() const
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.
static std::string PrintMatrixInfo(const Matrix &A, const std::string &msgTag, RCP< const Teuchos::ParameterList > params=Teuchos::null)
void DeclareInput(Level ¤tLevel) const
Specifies the data that this class needs, and the factories that generate that data.
void Build(Level ¤tLevel) const
Build an object with this factory.
static const RCP< const NoFactory > getRCP()
Static Get() functions.