46 #ifndef MUELU_BRICKAGGREGATIONFACTORY_DECL_HPP_
47 #define MUELU_BRICKAGGREGATIONFACTORY_DECL_HPP_
78 template <
class Scalar = double,
79 class LocalOrdinal = int,
80 class GlobalOrdinal = LocalOrdinal,
83 #undef MUELU_BRICKAGGREGATIONFACTORY_SHORT
96 bool operator()(
const Scalar& x,
const Scalar& y)
const {
102 typedef std::map<Scalar,GlobalOrdinal,compare>
container;
139 bool isRoot (LocalOrdinal LID)
const;
140 GlobalOrdinal
getRoot (LocalOrdinal LID)
const;
141 GlobalOrdinal
getAggGID(LocalOrdinal LID)
const;
154 std::map<GlobalOrdinal,GlobalOrdinal>
revMap_;
159 #define MUELU_BRICKAGGREGATIONFACTORY_SHORT
BrickAggregationFactory()
Constructor.
ArrayRCP< const typename Teuchos::ScalarTraits< Scalar >::magnitudeType > x_
virtual ~BrickAggregationFactory()
Destructor.
static magnitudeType real(T a)
Teuchos::ScalarTraits< Scalar > STS
void Build(Level ¤tLevel) const
Build aggregates.
GlobalOrdinal getAggGID(LocalOrdinal LID) const
Class that holds all level-specific information.
void Setup(const RCP< const Teuchos::Comm< int > > &comm, const RCP< Xpetra::MultiVector< typename Teuchos::ScalarTraits< Scalar >::magnitudeType, LO, GO, NO > > &coords, const RCP< const Map > &map) const
ArrayRCP< const typename Teuchos::ScalarTraits< Scalar >::magnitudeType > z_
std::map< GlobalOrdinal, GlobalOrdinal > revMap_
static magnitudeType magnitude(T a)
bool isRoot(LocalOrdinal LID) const
bool operator()(const Scalar &x, const Scalar &y) const
RCP< container > Construct1DMap(const RCP< const Teuchos::Comm< int > > &comm, const ArrayRCP< const typename Teuchos::ScalarTraits< Scalar >::magnitudeType > &x) const
ArrayRCP< const typename Teuchos::ScalarTraits< Scalar >::magnitudeType > y_
std::map< Scalar, GlobalOrdinal, compare > container
Base class for factories that use one level (currentLevel).
GlobalOrdinal getRoot(LocalOrdinal LID) const
void DeclareInput(Level ¤tLevel) const
Input.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.