46 #ifndef MUELU_INITIALBLOCKNUMBER_FACTORY_DEF_HPP
47 #define MUELU_INITIALBLOCKNUMBER_FACTORY_DEF_HPP
50 #include "Xpetra_Map.hpp"
62 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
65 #define SET_VALID_ENTRY(name) validParamList->setEntry(name, MasterList::getEntry(name))
67 #undef SET_VALID_ENTRY
71 return validParamList;
74 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
76 Input(currentLevel,
"A");
79 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
84 RCP<Matrix> A = Get<RCP<Matrix> >(currentLevel,
"A");
85 LO blocksize = as<LO>(pL.
get<
int>(
"aggregation: block diagonal: interleaved blocksize"));
87 GetOStream(
Statistics1) <<
"Generating interleaved blocking with " << blocksize <<
" equations" << std::endl;
90 for (
LO i = 0; i < (
LO)A->getRowMap()->getLocalNumElements(); i++)
91 bn_data[i] = i % blocksize;
93 Set(currentLevel,
"BlockNumber", BlockNumber);
98 #endif // MUELU_INITIALBLOCKNUMBER_FACTORY_DEF_HPP
void DeclareInput(Level ¤tLevel) const
Specifies the data that this class needs, and the factories that generate that data.
#define SET_VALID_ENTRY(name)
T & get(const std::string &name, T def_value)
void Build(Level ¤tLevel) const
Build an object with this factory.
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.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Class that holds all level-specific information.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.