]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clean up assert 14889/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 15 Mar 2023 07:35:55 +0000 (08:35 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 15 Mar 2023 07:35:55 +0000 (08:35 +0100)
include/deal.II/matrix_free/evaluation_kernels.h

index da52686722be4ab040f02c29571ee2277d3d96ed..4d615b446d1d96540e1975e700a5ab9ad9202272 100644 (file)
@@ -835,6 +835,8 @@ namespace internal
                       const Number *                         values_dofs_actual,
                       FEEvaluationData<dim, Number, false> & fe_eval)
   {
+    Assert(!(evaluation_flag & EvaluationFlags::hessians), ExcNotImplemented());
+
     const std::size_t n_dofs =
       fe_eval.get_shape_info().dofs_per_component_on_cell;
     const std::size_t n_q_points = fe_eval.get_shape_info().n_q_points;
@@ -885,9 +887,6 @@ namespace internal
             values_dofs_actual_ptr += n_dofs;
           }
       }
-
-    if (evaluation_flag & EvaluationFlags::hessians)
-      Assert(false, ExcNotImplemented());
   }
 
 
@@ -905,9 +904,8 @@ namespace internal
                        FEEvaluationData<dim, Number, false> &fe_eval,
                        const bool add_into_values_array)
   {
-    // TODO: implement hessians
-    AssertThrow(!(integration_flag & EvaluationFlags::hessians),
-                ExcNotImplemented());
+    Assert(!(integration_flag & EvaluationFlags::hessians),
+           ExcNotImplemented());
 
     const std::size_t n_dofs =
       fe_eval.get_shape_info().dofs_per_component_on_cell;

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.