From: Peter Munch Date: Wed, 15 Mar 2023 07:35:55 +0000 (+0100) Subject: Clean up assert X-Git-Tag: v9.5.0-rc1~480^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90b8db607d893a5a6d16d25d4d72403ad4534642;p=dealii.git Clean up assert --- diff --git a/include/deal.II/matrix_free/evaluation_kernels.h b/include/deal.II/matrix_free/evaluation_kernels.h index da52686722..4d615b446d 100644 --- a/include/deal.II/matrix_free/evaluation_kernels.h +++ b/include/deal.II/matrix_free/evaluation_kernels.h @@ -835,6 +835,8 @@ namespace internal const Number * values_dofs_actual, FEEvaluationData & 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 &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;