46 #ifndef MUELU_ISOLATEDNODEAGGREGATIONALGORITHM_KOKKOS_DEF_HPP 47 #define MUELU_ISOLATEDNODEAGGREGATIONALGORITHM_KOKKOS_DEF_HPP 49 #ifdef HAVE_MUELU_KOKKOS_REFACTOR 51 #include <Teuchos_Comm.hpp> 52 #include <Teuchos_CommHelpers.hpp> 54 #include <Xpetra_Vector.hpp> 56 #include "MueLu_IsolatedNodeAggregationAlgorithm_kokkos.hpp" 58 #include "MueLu_LWGraph_kokkos.hpp" 59 #include "MueLu_Aggregates_kokkos.hpp" 65 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
66 void IsolatedNodeAggregationAlgorithm_kokkos<LocalOrdinal, GlobalOrdinal, Node>::
67 BuildAggregates(
const ParameterList& params,
const LWGraph_kokkos& graph, Aggregates_kokkos& aggregates, std::vector<unsigned>& aggStat, LO& numNonAggregatedNodes)
const {
68 Monitor m(*
this,
"BuildAggregates");
70 const LO numRows = graph.GetNodeNumVertices();
73 for (LO i = 0; i < numRows; i++)
74 if (aggStat[i] !=
AGGREGATED && aggStat[i] !=
IGNORED && graph.getNeighborVertices(i).length == 1) {
76 numNonAggregatedNodes--;
82 #endif // HAVE_MUELU_KOKKOS_REFACTOR 83 #endif // MUELU_ISOLATEDNODEAGGREGATIONALGORITHM_KOKKOS_DEF_HPP
Namespace for MueLu classes and methods.