From 99913ad239a9b0fa2293a585a777acd0034728c4 Mon Sep 17 00:00:00 2001 From: Simon Sticko Date: Wed, 8 Jan 2020 13:50:44 +0100 Subject: [PATCH] shape_3rd_derivative* checks for update_3rd_derivatives The functions shape_3rd_derivative and shape_3rd_derivative_component check that update_flags contains update_hessians, but they should check that update_flags contain update_3rd_derivatives. Fix this. --- include/deal.II/fe/fe_values.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/fe/fe_values.h b/include/deal.II/fe/fe_values.h index 2b0e292ced..30155cc848 100644 --- a/include/deal.II/fe/fe_values.h +++ b/include/deal.II/fe/fe_values.h @@ -5157,7 +5157,7 @@ FEValuesBase::shape_3rd_derivative(const unsigned int i, const unsigned int j) const { Assert(i < fe->dofs_per_cell, ExcIndexRange(i, 0, fe->dofs_per_cell)); - Assert(this->update_flags & update_hessians, + Assert(this->update_flags & update_3rd_derivatives, ExcAccessToUninitializedField("update_3rd_derivatives")); Assert(fe->is_primitive(i), ExcShapeFunctionNotPrimitive(i)); Assert(present_cell.get() != nullptr, @@ -5194,7 +5194,7 @@ FEValuesBase::shape_3rd_derivative_component( const unsigned int component) const { Assert(i < fe->dofs_per_cell, ExcIndexRange(i, 0, fe->dofs_per_cell)); - Assert(this->update_flags & update_hessians, + Assert(this->update_flags & update_3rd_derivatives, ExcAccessToUninitializedField("update_3rd_derivatives")); Assert(component < fe->n_components(), ExcIndexRange(component, 0, fe->n_components())); -- 2.39.5