From: Bruno Turcksin Date: Tue, 23 May 2023 17:32:14 +0000 (+0000) Subject: Fix size of collection gradient View X-Git-Tag: v9.5.0-rc1~201^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2e3a84b8d5821cc48b945339bc2c493cf3ec3c8;p=dealii.git Fix size of collection gradient View --- diff --git a/include/deal.II/matrix_free/cuda_matrix_free.templates.h b/include/deal.II/matrix_free/cuda_matrix_free.templates.h index 408058efeb..6884cf5681 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.templates.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.templates.h @@ -728,7 +728,7 @@ namespace CUDAWrappers Kokkos::View( Kokkos::view_alloc("co_shape_gradients", Kokkos::WithoutInitializing), - size_shape_values); + n_q_points_1d * n_q_points_1d); Kokkos::deep_copy( co_shape_gradients, Kokkos::View(