diff --git a/packages/muelu/test/unit_tests_kokkos/LWGraph_kokkos.cpp b/packages/muelu/test/unit_tests_kokkos/LWGraph_kokkos.cpp index 2ce4244e9440..4fd8e231e69c 100644 --- a/packages/muelu/test/unit_tests_kokkos/LWGraph_kokkos.cpp +++ b/packages/muelu/test/unit_tests_kokkos/LWGraph_kokkos.cpp @@ -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(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);