MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_ScalarDroppingClassical_decl.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // MueLu: A package for multigrid based preconditioning
4 //
5 // Copyright 2012 NTESS and the MueLu contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef MUELU_SCALARDROPPINGCLASSICAL_DECL_HPP
11 #define MUELU_SCALARDROPPINGCLASSICAL_DECL_HPP
12 
15 #include "MueLu_CutDrop.hpp"
16 #include "MueLu_DroppingCommon.hpp"
18 #include "MueLu_Utilities.hpp"
19 #include "MueLu_LWGraph_kokkos.hpp"
20 
21 namespace MueLu {
22 
23 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node, Misc::StrengthMeasure SoC>
24 class ScalarDroppingClassical : private ScalarDroppingBase<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
25  public:
29  using local_matrix_type = typename crs_matrix_type::local_matrix_type;
30  using local_graph_type = typename GraphType::local_graph_type;
31  using rowptr_type = typename local_graph_type::row_map_type::non_const_type;
32  using device_type = typename Node::device_type;
33  using memory_space = typename device_type::memory_space;
34  using results_view = Kokkos::View<DecisionType*, memory_space>;
38 
40  results_view& results,
41  rowptr_type& filtered_rowptr,
42  LocalOrdinal& nnz_filtered,
43  boundary_nodes_type& boundaryNodes,
44  const std::string& droppingMethod,
45  const magnitudeType threshold,
46  const bool aggregationMayCreateDirichlet,
47  const bool symmetrizeDroppedGraph,
48  const bool useBlocking,
49  Level& level,
50  const Factory& factory);
51 };
52 
53 } // namespace MueLu
54 #endif
typename device_type::memory_space memory_space
MueLu::DefaultLocalOrdinal LocalOrdinal
typename MueLu::LWGraph_kokkos< LocalOrdinal, GlobalOrdinal, Node >::boundary_nodes_type boundary_nodes_type
typename crs_matrix_type::local_matrix_type local_matrix_type
Kokkos::View< DecisionType *, memory_space > results_view
typename Node::device_type device_type
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
typename Teuchos::ScalarTraits< Scalar >::magnitudeType magnitudeType
typename GraphType::local_graph_type local_graph_type
static void runDroppingFunctors_on_A(matrix_type &A, results_view &results, rowptr_type &filtered_rowptr, LocalOrdinal &nnz_filtered, boundary_nodes_type &boundaryNodes, const std::string &droppingMethod, const magnitudeType threshold, const bool aggregationMayCreateDirichlet, const bool symmetrizeDroppedGraph, const bool useBlocking, Level &level, const Factory &factory)
typename local_graph_type::row_map_type::non_const_type rowptr_type