Skip to content

Commit

Permalink
MueLu LWGraph_kokkos unit test: Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Jan 26, 2024
1 parent d835e43 commit dc6d8a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/muelu/test/unit_tests_kokkos/LWGraph_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(LWGraph_kokkos, LocalGraphData, Scalar, LocalO
// we can simply compare the value from LWGraph with those in A
auto numrows = A->getLocalNumRows(), nument = A->getLocalNumEntries();
int result = 0;
auto lclLWGraph = graph;
auto lclLWGraph = *graph;
Kokkos::parallel_reduce(
"MueLu:TentativePF:Build:compute_agg_sizes", Kokkos::RangePolicy<typename NO::execution_space, size_t>(0, 1),
KOKKOS_LAMBDA(const LO i, int& incorrect) {
if (lclLWGraph->GetNodeNumVertices() != numrows)
if (lclLWGraph.GetNodeNumVertices() != numrows)
incorrect++;
if (lclLWGraph->GetNodeNumEdges() != nument)
if (lclLWGraph.GetNodeNumEdges() != nument)
incorrect++;
},
result);
Expand Down

0 comments on commit dc6d8a4

Please sign in to comment.