]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change CUDAWrappers::MatrixFree::point_type to Point 8246/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 18 May 2019 17:55:49 +0000 (19:55 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 18 May 2019 17:55:49 +0000 (19:55 +0200)
examples/step-64/step-64.cu
include/deal.II/matrix_free/cuda_matrix_free.h
include/deal.II/matrix_free/cuda_matrix_free.templates.h

index 5d256396fa14be93cce9a6d6365d12221ca9a3ee..ea80c9fae1229baf7361f75e9bc64b2e4058cdf5 100644 (file)
@@ -92,7 +92,7 @@ namespace Step64
   {
     const unsigned int pos = CUDAWrappers::local_q_point_id<dim, double>(
       cell, gpu_data, n_dofs_1d, n_q_points);
-    const Tensor<1, dim> q_point =
+    const Point<dim> q_point =
       CUDAWrappers::get_quadrature_point<dim, double>(cell,
                                                       gpu_data,
                                                       n_dofs_1d);
index b1d4f349df02f066db21b62e8e2a1a7b4884ea8e..304278e6e42834f82ea230b31fc42a9bab38dc00 100644 (file)
@@ -78,8 +78,7 @@ namespace CUDAWrappers
   {
   public:
     using jacobian_type = Tensor<2, dim, Tensor<1, dim, Number>>;
-    // TODO this should really be a CUDAWrappers::Point
-    using point_type = Tensor<1, dim, Number>;
+    using point_type    = Point<dim, Number>;
 
     /**
      * Parallelization scheme used: parallel_in_elem (parallelism at the level
index 81a4e45d2ab11a5b2249f397525db2ddcba45b00..19e2f5a3aae004bb8c02938ec17c3fc42b9f4779 100644 (file)
@@ -362,7 +362,7 @@ namespace CUDAWrappers
             transpose_in_place(q_points_host, n_cells, padding_length);
 
           alloc_and_copy(&data->q_points[color],
-                         ArrayView<const Tensor<1, dim, Number>>(
+                         ArrayView<const Point<dim, Number>>(
                            q_points_host.data(), q_points_host.size()),
                          n_cells * padding_length);
         }

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.