MueLu
Version of the Day
|
#include <MueLu_LWGraphBase.hpp>
Public Types | |
using | local_ordinal_type = LocalOrdinal |
using | global_ordinal_type = GlobalOrdinal |
using | map_type = Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > |
using | crs_graph_type = Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > |
using | size_type = size_t |
using | device_type = typename std::conditional< OnHost, Kokkos::Device< Kokkos::Serial, Kokkos::HostSpace >, typename Node::device_type >::type |
using | execution_space = typename device_type::execution_space |
using | memory_space = typename device_type::memory_space |
using | local_graph_device_type = Kokkos::StaticCrsGraph< LocalOrdinal, Kokkos::LayoutLeft, typename Node::device_type, void, size_t > |
using | local_graph_type = typename std::conditional< OnHost, typename local_graph_device_type::HostMirror, local_graph_device_type >::type |
using | boundary_nodes_type = Kokkos::View< bool *, memory_space > |
using | row_type = typename local_graph_type::row_map_type |
using | entries_type = typename local_graph_type::entries_type |
using | neighbor_vertices_type = Kokkos::GraphRowViewConst< local_graph_type > |
Public Member Functions | |
const RCP< const Teuchos::Comm < int > > | GetComm () const |
const RCP< const Map > | GetDomainMap () const |
const RCP< const Map > | GetImportMap () const |
Return overlapping import map (nodes). More... | |
KOKKOS_INLINE_FUNCTION size_type | GetNodeNumVertices () const |
Return number of graph vertices. More... | |
KOKKOS_INLINE_FUNCTION size_type | GetNodeNumEdges () const |
Return number of graph edges. More... | |
Xpetra::global_size_t | GetGlobalNumEdges () const |
Return global number of graph edges. More... | |
KOKKOS_INLINE_FUNCTION size_type | getLocalMaxNumRowEntries () const |
Returns the maximum number of entries across all rows/columns on this node. More... | |
KOKKOS_INLINE_FUNCTION neighbor_vertices_type | getNeighborVertices (LO i) const |
Return the list of vertices adjacent to the vertex 'v'. More... | |
Teuchos::ArrayView< LO > | getNeighborVertices_av (LO i) const |
Return the list of vertices adjacent to the vertex 'v'. More... | |
KOKKOS_INLINE_FUNCTION bool | isLocalNeighborVertex (LO i) const |
Return true if vertex with local id 'v' is on current process. More... | |
KOKKOS_INLINE_FUNCTION row_type | getRowPtrs () const |
Return the row pointers of the local graph. More... | |
KOKKOS_INLINE_FUNCTION entries_type | getEntries () const |
Return the list entries in the local graph. More... | |
KOKKOS_INLINE_FUNCTION void | SetBoundaryNodeMap (const boundary_nodes_type bndry) |
Set boolean array indicating which rows correspond to Dirichlet boundaries. More... | |
KOKKOS_INLINE_FUNCTION const boundary_nodes_type | GetBoundaryNodeMap () const |
Returns map with global ids of boundary nodes. More... | |
std::string | description () const |
Return a simple one-line description of the Graph. More... | |
void | print (Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const |
Print the Graph with some verbosity level to an FancyOStream object. More... | |
local_graph_type & | getGraph () const |
RCP< crs_graph_type > | GetCrsGraph () const |
Private Attributes | |
local_graph_type | graph_ |
Underlying graph (with label) More... | |
RCP< const map_type > | domainMap_ |
Graph maps. More... | |
RCP< const map_type > | importMap_ |
std::string | objectLabel_ |
Name of this graph. More... | |
boundary_nodes_type | dirichletBoundaries_ |
Boolean array marking Dirichlet rows. More... | |
LO | minLocalIndex_ |
Local index boundaries (cached from domain map) More... | |
LO | maxLocalIndex_ |
size_type | maxNumRowEntries_ |
Constructors/Destructors. | |
void | setup (const local_graph_type &graph, const RCP< const map_type > &domainMap, const RCP< const map_type > &importMap, const std::string &objectLabel) |
LWGraphBase (const local_graph_type &graph, const RCP< const map_type > &domainMap, const RCP< const map_type > &importMap, const std::string &objectLabel="") | |
LWGraph constructor. More... | |
LWGraphBase (const RCP< const crs_graph_type > &graph, const std::string &objectLabel="") | |
LWGraphBase (const row_type &rows, const entries_type &columns, const RCP< const map_type > &domainMap, const RCP< const map_type > &importMap, const std::string &objectLabel="") | |
~LWGraphBase ()=default | |
Definition at line 108 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::local_ordinal_type = LocalOrdinal |
Definition at line 110 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::global_ordinal_type = GlobalOrdinal |
Definition at line 111 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::map_type = Xpetra::Map<LocalOrdinal, GlobalOrdinal, Node> |
Definition at line 112 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::crs_graph_type = Xpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> |
Definition at line 113 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::size_type = size_t |
Definition at line 114 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::device_type = typename std::conditional<OnHost, Kokkos::Device<Kokkos::Serial, Kokkos::HostSpace>, typename Node::device_type>::type |
Definition at line 118 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::execution_space = typename device_type::execution_space |
Definition at line 119 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::memory_space = typename device_type::memory_space |
Definition at line 120 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::local_graph_device_type = Kokkos::StaticCrsGraph<LocalOrdinal, Kokkos::LayoutLeft, typename Node::device_type, void, size_t> |
Definition at line 125 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::local_graph_type = typename std::conditional<OnHost, typename local_graph_device_type::HostMirror, local_graph_device_type>::type |
Definition at line 126 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::boundary_nodes_type = Kokkos::View<bool*, memory_space> |
Definition at line 127 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::row_type = typename local_graph_type::row_map_type |
Definition at line 128 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::entries_type = typename local_graph_type::entries_type |
Definition at line 129 of file MueLu_LWGraphBase.hpp.
using MueLu::LWGraphBase< LocalOrdinal, GlobalOrdinal, Node, OnHost >::neighbor_vertices_type = Kokkos::GraphRowViewConst<local_graph_type> |
Definition at line 130 of file MueLu_LWGraphBase.hpp.
|
inline |
LWGraph constructor.
Definition at line 164 of file MueLu_LWGraphBase.hpp.
|
inline |
Definition at line 171 of file MueLu_LWGraphBase.hpp.
|
inline |
Definition at line 196 of file MueLu_LWGraphBase.hpp.
|
default |
|
inlineprivate |
Definition at line 139 of file MueLu_LWGraphBase.hpp.
|
inline |
Definition at line 208 of file MueLu_LWGraphBase.hpp.
|
inline |
Definition at line 211 of file MueLu_LWGraphBase.hpp.
|
inline |
Return overlapping import map (nodes).
Definition at line 215 of file MueLu_LWGraphBase.hpp.
|
inline |
Return number of graph vertices.
Definition at line 220 of file MueLu_LWGraphBase.hpp.
|
inline |
Return number of graph edges.
Definition at line 225 of file MueLu_LWGraphBase.hpp.
|
inline |
Return global number of graph edges.
Definition at line 230 of file MueLu_LWGraphBase.hpp.
|
inline |
Returns the maximum number of entries across all rows/columns on this node.
Definition at line 237 of file MueLu_LWGraphBase.hpp.
|
inline |
Return the list of vertices adjacent to the vertex 'v'.
Definition at line 242 of file MueLu_LWGraphBase.hpp.
|
inline |
Return the list of vertices adjacent to the vertex 'v'.
Definition at line 248 of file MueLu_LWGraphBase.hpp.
|
inline |
Return true if vertex with local id 'v' is on current process.
Definition at line 255 of file MueLu_LWGraphBase.hpp.
|
inline |
Return the row pointers of the local graph.
Definition at line 260 of file MueLu_LWGraphBase.hpp.
|
inline |
Return the list entries in the local graph.
Definition at line 265 of file MueLu_LWGraphBase.hpp.
|
inline |
Set boolean array indicating which rows correspond to Dirichlet boundaries.
Definition at line 270 of file MueLu_LWGraphBase.hpp.
|
inline |
Returns map with global ids of boundary nodes.
Definition at line 275 of file MueLu_LWGraphBase.hpp.
|
inline |
Return a simple one-line description of the Graph.
Definition at line 280 of file MueLu_LWGraphBase.hpp.
|
inline |
Print the Graph with some verbosity level to an FancyOStream object.
Definition at line 285 of file MueLu_LWGraphBase.hpp.
|
inline |
Definition at line 317 of file MueLu_LWGraphBase.hpp.
|
inline |
Definition at line 321 of file MueLu_LWGraphBase.hpp.
|
mutableprivate |
Underlying graph (with label)
Definition at line 339 of file MueLu_LWGraphBase.hpp.
|
private |
Graph maps.
Definition at line 342 of file MueLu_LWGraphBase.hpp.
|
private |
Definition at line 343 of file MueLu_LWGraphBase.hpp.
|
private |
Name of this graph.
Definition at line 346 of file MueLu_LWGraphBase.hpp.
|
private |
Boolean array marking Dirichlet rows.
Definition at line 349 of file MueLu_LWGraphBase.hpp.
|
private |
Local index boundaries (cached from domain map)
Definition at line 352 of file MueLu_LWGraphBase.hpp.
|
private |
Definition at line 352 of file MueLu_LWGraphBase.hpp.
|
private |
Definition at line 353 of file MueLu_LWGraphBase.hpp.