Go to the documentation of this file.
46 #ifndef MUELU_UNCOUPLEDAGGREGATIONFACTORY_DECL_HPP_
47 #define MUELU_UNCOUPLEDAGGREGATIONFACTORY_DECL_HPP_
50 #include <Xpetra_Map_fwd.hpp>
51 #include <Xpetra_Vector_fwd.hpp>
52 #include <Xpetra_VectorFactory_fwd.hpp>
142 template <
class LocalOrdinal = int,
143 class GlobalOrdinal = LocalOrdinal,
144 class Node = KokkosClassic::DefaultNode::DefaultNodeType>
146 #undef MUELU_UNCOUPLEDAGGREGATIONFACTORY_SHORT
170 SetParameter(
"aggregation: ordering", ParameterEntry(ordering));
174 SetParameter(
"aggregation: max selected neighbors", ParameterEntry(Teuchos::as<LocalOrdinal>(maxNeighAlreadySelected)));
178 SetParameter(
"aggregation: min agg size", ParameterEntry(Teuchos::as<LocalOrdinal>(minNodesPerAggregate)));
181 void SetOnePtMapName(
const std::string name, Teuchos::RCP<const FactoryBase> mapFact) {
182 SetParameter(
"OnePt aggregate map name", ParameterEntry(std::string(name)));
183 SetFactory(
"OnePt aggregate map factory",mapFact);
189 return pL.get<std::string>(
"aggregation: ordering");
194 return Teuchos::as<int>(pL.get<LocalOrdinal>(
"aggregation: max selected neighbors"));
199 return Teuchos::as<int>(pL.get<LocalOrdinal>(
"aggregation: min agg size"));
233 mutable std::vector<RCP<MueLu::AggregationAlgorithmBase<LocalOrdinal, GlobalOrdinal, Node> > >
algos_;
244 #define MUELU_UNCOUPLEDAGGREGATIONFACTORY_SHORT
void SetMinNodesPerAggregate(int minNodesPerAggregate)
void SetParameter(const std::string &name, const ParameterEntry &entry)
Set a parameter directly as a ParameterEntry.
void SetOrdering(const std::string &ordering)
void DeclareInput(Level ¤tLevel) const
Input.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Factory for building uncoupled aggregates.
void SetOnePtMapName(const std::string name, Teuchos::RCP< const FactoryBase > mapFact)
virtual const Teuchos::ParameterList & GetParameterList() const
Namespace for MueLu classes and methods.
UncoupledAggregationFactory()
Constructor.
std::vector< RCP< MueLu::AggregationAlgorithmBase< LocalOrdinal, GlobalOrdinal, Node > > > algos_
Append a new aggregation algorithm to list of aggregation algorithms.
virtual void SetFactory(const std::string &varName, const RCP< const FactoryBase > &factory)
Configuration.
void SetMaxNeighAlreadySelected(int maxNeighAlreadySelected)
void Build(Level ¤tLevel) const
Build aggregates.
virtual ~UncoupledAggregationFactory()
Destructor.
int GetMaxNeighAlreadySelected() const
Base class for factories that use one level (currentLevel).
const std::string & GetOrdering() const
Class that holds all level-specific information.
int GetMinNodesPerAggregate() const