From: David Wells Date: Tue, 9 Apr 2024 23:45:04 +0000 (-0400) Subject: FE_Q_Base: clean up an assertion. X-Git-Tag: v9.6.0-rc1~377^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=606b30675d12d0afe4335006b8a67d0c89c5f601;p=dealii.git FE_Q_Base: clean up an assertion. --- diff --git a/source/fe/fe_q_base.cc b/source/fe/fe_q_base.cc index 1959071618..4e05d5396d 100644 --- a/source/fe/fe_q_base.cc +++ b/source/fe/fe_q_base.cc @@ -1662,9 +1662,7 @@ FE_Q_Base::has_support_on_face( const unsigned int quad_index = (shape_index - this->get_first_quad_index(0)) / this->n_dofs_per_quad(face_index); // this won't work - Assert(static_cast(quad_index) < - static_cast(GeometryInfo::quads_per_cell), - ExcInternalError()); + AssertIndexRange(quad_index, GeometryInfo::quads_per_cell); // in 2d, cell bubble are zero on all faces. but we have treated this // case above already