10 #ifndef MUELU_CONSTRAINTFACTORY_DEF_HPP
11 #define MUELU_CONSTRAINTFACTORY_DEF_HPP
15 #include "MueLu_Constraint.hpp"
20 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
28 return validParamList;
31 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
33 Input(fineLevel,
"Nullspace",
"FineNullspace");
34 Input(coarseLevel,
"Nullspace",
"CoarseNullspace");
35 Input(coarseLevel,
"Ppattern");
38 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
42 RCP<MultiVector> fineNullspace = Get<RCP<MultiVector> >(fineLevel,
"Nullspace",
"FineNullspace");
43 RCP<MultiVector> coarseNullspace = Get<RCP<MultiVector> >(coarseLevel,
"Nullspace",
"CoarseNullspace");
46 constraint->Setup(*fineNullspace, *coarseNullspace,
49 Set(coarseLevel,
"Constraint", constraint);
54 #endif // MUELU_CONSTRAINTFACTORY_DEF_HPP
Timer to be used in factories. Similar to Monitor but with additional timers.
Constraint space information for the potential prolongator.
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Class that holds all level-specific information.
void Build(Level &fineLevel, Level &coarseLevel) const
Build method.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.