Skip to content

Commit

Permalink
MueLu LWGraphBase: Allow calling GetNodeNumEdges from host and device
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Glusa <caglusa@sandia.gov>
  • Loading branch information
cgcgcg committed Sep 11, 2024
1 parent 8e1e152 commit e39148c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/muelu/src/Graph/Containers/MueLu_LWGraphBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class LWGraphBase {

//! Return number of graph edges
KOKKOS_INLINE_FUNCTION size_type GetNodeNumEdges() const {
return graph_.row_map(GetNodeNumVertices());
return graph_.entries.extent(0);
}

//! Return global number of graph edges
Expand Down

0 comments on commit e39148c

Please sign in to comment.