From: Simon Sticko Date: Wed, 8 Jan 2020 12:50:44 +0000 (+0100) Subject: shape_3rd_derivative* checks for update_3rd_derivatives X-Git-Tag: v9.2.0-rc1~713^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99913ad239a9b0fa2293a585a777acd0034728c4;p=dealii.git 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. --- 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()));