Skip to content

Commit

Permalink
Merge pull request #12693 from cgcgcg/mueluBugFix
Browse files Browse the repository at this point in the history
MueLu LWGraph_kokkos unit test: Fix bug
  • Loading branch information
cgcgcg authored Jan 27, 2024
2 parents 74e4930 + dc6d8a4 commit 6219aee
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 6219aee

Please sign in to comment.