]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix size of collection gradient View 15250/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 23 May 2023 17:32:14 +0000 (17:32 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 23 May 2023 17:32:14 +0000 (17:32 +0000)
include/deal.II/matrix_free/cuda_matrix_free.templates.h

index 408058efeb4d8331778b48fa0b209ca2391ac3c3..6884cf56819bb1091e289882a6f8bc7790921048 100644 (file)
@@ -728,7 +728,7 @@ namespace CUDAWrappers
           Kokkos::View<Number *, MemorySpace::Default::kokkos_space>(
             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<Number *, Kokkos::HostSpace>(

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.