10 #ifndef MUELU_PATTERNFACTORY_DEF_HPP
11 #define MUELU_PATTERNFACTORY_DEF_HPP
24 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
28 #define SET_VALID_ENTRY(name) validParamList->setEntry(name, MasterList::getEntry(name))
30 #undef SET_VALID_ENTRY
33 validParamList->
set<
RCP<const FactoryBase> >(
"P", Teuchos::null,
"Generating factory for the matrix providing nonzero graph");
35 return validParamList;
38 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
40 Input(coarseLevel,
"P");
43 if (pL.
get<
int>(
"emin: pattern order") > 0)
44 Input(fineLevel,
"A");
47 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
51 RCP<Matrix> P = Get<RCP<Matrix> >(coarseLevel,
"P");
54 int k = pL.get<
int>(
"emin: pattern order");
60 bool doFillComplete =
true;
61 bool optimizeStorage =
true;
63 for (
int i = 0; i < k; i++) {
69 Set(coarseLevel,
"Ppattern", P->getCrsGraph());
74 #endif // MUELU_PATTERNFACTORY_DEF_HPP
#define SET_VALID_ENTRY(name)
T & get(const std::string &name, T def_value)
Timer to be used in factories. Similar to Monitor but with additional timers.
void swap(RCP< T > &r_ptr)
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
void Build(Level &fineLevel, Level &coarseLevel) const
Build method.
Print even more statistics.
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 void Multiply(const Matrix &A, bool transposeA, const Matrix &B, bool transposeB, Matrix &C, bool call_FillComplete_on_result=true, bool doOptimizeStorage=true, const std::string &label=std::string(), const RCP< ParameterList > ¶ms=null)
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.