From a2e3a84b8d5821cc48b945339bc2c493cf3ec3c8 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Tue, 23 May 2023 17:32:14 +0000 Subject: [PATCH] Fix size of collection gradient View --- include/deal.II/matrix_free/cuda_matrix_free.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.39.5