]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove inv_jacobians instead
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 24 May 2023 20:27:53 +0000 (16:27 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 24 May 2023 20:27:53 +0000 (16:27 -0400)
include/deal.II/matrix_free/cuda_matrix_free.templates.h

index fdefd46e6ae9817d1c83e019ced5a01ba8facbd1..d6ef02b34fdd3d6a4746a62b15a5cf71b10da22e 100644 (file)
@@ -260,13 +260,11 @@ namespace CUDAWrappers
 
           if (update_flags & update_gradients)
             {
-              const std::vector<DerivativeForm<1, dim, dim>> &inv_jacobians =
-                fe_values.get_inverse_jacobians();
               for (unsigned int i = 0; i < q_points_per_cell; ++i)
                 for (unsigned int d = 0; d < dim; ++d)
                   for (unsigned int e = 0; e < dim; ++e)
                     inv_jacobian_host(cell_id, i, d, e) =
-                      inv_jacobians[i][d][e];
+                      fe_values.inverse_jacobian(i)[d][e];
             }
         }
 

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.