38 ::Kokkos::View<T *> d(std::string(label), values.size());
39 auto h = ::Kokkos::create_mirror_view(d);
40 for (std::size_t i = 0; i < values.size(); ++i)
42 ::Kokkos::deep_copy(d, h);
54 const std::vector<Real> & ref_values,
57 auto h_values = ::Kokkos::create_mirror_view(d_values);
58 ::Kokkos::deep_copy(h_values, d_values);
61 for (std::size_t i = 0; i < ref_values.size(); ++i)
62 if (std::fabs(h_values(i) - ref_values[i]) > tol)
71 const std::vector<VectorType> & ref_values,
74 auto h_values = ::Kokkos::create_mirror_view(d_values);
75 ::Kokkos::deep_copy(h_values, d_values);
78 for (std::size_t i = 0; i < ref_values.size(); ++i)
79 for (
unsigned int d = 0; d < LIBMESH_DIM; ++d)
80 if (std::fabs(h_values(i, d) - ref_values[i](d)) > tol)
89 const std::vector<TensorType> & ref_values,
92 auto h_values = ::Kokkos::create_mirror_view(d_values);
93 ::Kokkos::deep_copy(h_values, d_values);
96 for (std::size_t i = 0; i < ref_values.size(); ++i)
97 for (
unsigned int row = 0; row < LIBMESH_DIM; ++row)
98 for (
unsigned int col = 0; col < LIBMESH_DIM; ++col)
99 if (std::fabs(h_values(i, row, col) - ref_values[i](row, col)) > tol)