46 #ifndef MUELU_NOTAYAGGREGATIONFACTORY_DECL_HPP_ 47 #define MUELU_NOTAYAGGREGATIONFACTORY_DECL_HPP_ 50 #include <Xpetra_Map_fwd.hpp> 51 #include <Xpetra_Vector_fwd.hpp> 52 #include <Xpetra_VectorFactory_fwd.hpp> 53 #include <Xpetra_MapFactory_fwd.hpp> 56 #include <Xpetra_Matrix.hpp> 76 #undef MUELU_NOTAYAGGREGATIONFACTORY_SHORT 85 using magnitude_type =
typename Teuchos::ScalarTraits<Scalar>::magnitudeType;
124 const RCP<const Matrix>& A,
125 const ArrayView<const LO>& orderingVector,
128 std::vector<unsigned>& aggStat,
129 LO& numNonAggregatedNodes,
130 LO& numDirichletNodes)
const;
134 const RCP<const Matrix>& A,
135 const Teuchos::ArrayView<const LO> & orderingVector,
139 std::vector<LO>& localAggStat,
140 Array<LO>& localVertex2AggID,
141 LO& numLocalAggregates,
142 LO& numNonAggregatedNodes)
const;
149 const LO numDirichletNodes,
150 const LO numLocalAggregates,
151 const ArrayView<const LO>& localVertex2AggID,
161 const std::string matrixLabel,
172 #define MUELU_NOTAYAGGREGATIONFACTORY_SHORT void localSpGEMM(const local_matrix_type &A, const local_matrix_type &B, const std::string matrixLabel, local_matrix_type &C) const
Wrapper for kokkos-kernels' spgemm that takes in CrsMatrix.
void BuildIntermediateProlongator(const LO numRows, const LO numDirichletNodes, const LO numLocalAggregates, const ArrayView< const LO > &localVertex2AggID, local_matrix_type &intermediateP) const
Construction of a local prolongator with values equal to 1.0.
MueLu::DefaultLocalOrdinal LocalOrdinal
KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
typename Kokkos::ArithTraits< Scalar >::val_type impl_scalar_type
Container class for aggregation information.
typename Matrix::local_matrix_type local_matrix_type
typename Teuchos::ScalarTraits< Scalar >::magnitudeType magnitude_type
typename local_matrix_type::device_type device_type
Namespace for MueLu classes and methods.
NotayAggregationFactory()
Constructor.
void BuildOnRankLocalMatrix(const local_matrix_type &localA, local_matrix_type &onRankA) const
void Build(Level ¤tLevel) const
Build aggregates.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
MueLu::DefaultScalar Scalar
void BuildInitialAggregates(const Teuchos::ParameterList ¶ms, const RCP< const Matrix > &A, const ArrayView< const LO > &orderingVector, const magnitude_type kappa, Aggregates &aggregates, std::vector< unsigned > &aggStat, LO &numNonAggregatedNodes, LO &numDirichletNodes) const
Initial aggregation phase.
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
typename device_type::execution_space execution_space
virtual ~NotayAggregationFactory()
Destructor.
void BuildCoarseLocalMatrix(const local_matrix_type &intermediateP, local_matrix_type &coarseA) const
Implementation of a local Galerkin projection called inside BuildFurtherAggregates.
void DeclareInput(Level ¤tLevel) const
Input.
Base class for factories that use one level (currentLevel).
typename Kokkos::View< impl_scalar_type *, Kokkos::LayoutLeft, device_type > row_sum_type
void BuildFurtherAggregates(const Teuchos::ParameterList ¶ms, const RCP< const Matrix > &A, const Teuchos::ArrayView< const LO > &orderingVector, const local_matrix_type &coarseA, const magnitude_type kappa, const row_sum_type &rowSum, std::vector< LO > &localAggStat, Array< LO > &localVertex2AggID, LO &numLocalAggregates, LO &numNonAggregatedNodes) const
Further aggregation phase increases coarsening rate by a factor of ~2 per iteration.