From: Wolfgang Bangerth Date: Tue, 28 Nov 2017 17:35:19 +0000 (-0700) Subject: Minor cleanups. X-Git-Tag: v9.0.0-rc1~699^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ccd7391a53d783e38867ae40f5b5192e01f71a;p=dealii.git Minor cleanups. --- diff --git a/source/fe/fe_face.cc b/source/fe/fe_face.cc index d31fd4ea87..1a443fb436 100644 --- a/source/fe/fe_face.cc +++ b/source/fe/fe_face.cc @@ -286,8 +286,10 @@ std::vector > FE_FaceQ:: hp_line_dof_identities (const FiniteElement &fe_other) const { + Assert (dim >= 2, ExcInternalError()); + // this element is continuous only for the highest dimensional bounding object - if (dim !=2) + if (dim > 2) return std::vector > (); else @@ -353,8 +355,10 @@ std::vector > FE_FaceQ:: hp_quad_dof_identities (const FiniteElement &fe_other) const { + Assert (dim >= 3, ExcInternalError()); + // this element is continuous only for the highest dimensional bounding object - if (dim !=3) + if (dim > 3) return std::vector > (); else