]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix use of flags in CUDAWrappers::MatrixFree 16224/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 31 Oct 2023 17:35:16 +0000 (18:35 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 31 Oct 2023 17:35:16 +0000 (18:35 +0100)
include/deal.II/matrix_free/cuda_fe_evaluation.h
tests/performance/timing_matrix_free_kokkos.cc

index f8779fce0b8c82b10526e1860bf9c52561e27ea9..282fcaf298d74f926b6776b1efa96fde1a565cf9 100644 (file)
@@ -419,12 +419,12 @@ namespace CUDAWrappers
         evaluator_tensor_product.integrate_value_and_gradient(
           shared_data->values, shared_data->gradients);
       }
-    else if (integration_flag & EvaluationFlags::gradients)
+    else if (integration_flag & EvaluationFlags::values)
       {
         evaluator_tensor_product.integrate_value(shared_data->values);
         shared_data->team_member.team_barrier();
       }
-    else if (integration_flag & EvaluationFlags::values)
+    else if (integration_flag & EvaluationFlags::gradients)
       {
         evaluator_tensor_product.template integrate_gradient<false>(
           shared_data->values, shared_data->gradients);
index eb96827f773513ac085af2951a374e02d5dd2433..1925f772b032717d9f9c972ca698d8b2833ed000 100644 (file)
@@ -145,10 +145,10 @@ public:
     CUDAWrappers::FEEvaluation<dim, fe_degree, fe_degree + 1, 1, Number>
       fe_eval(/*cell,*/ gpu_data, shared_data);
     fe_eval.read_dof_values(src);
-    fe_eval.evaluate(false, true);
+    fe_eval.evaluate(EvaluationFlags::gradients);
     fe_eval.apply_for_each_quad_point(
       LaplaceOperatorQuad<dim, fe_degree, Number>());
-    fe_eval.integrate(false, true);
+    fe_eval.integrate(EvaluationFlags::gradients);
     fe_eval.distribute_local_to_global(dst);
   }
   static const unsigned int n_dofs_1d    = fe_degree + 1;

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.