From 32ccd7391a53d783e38867ae40f5b5192e01f71a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 28 Nov 2017 10:35:19 -0700 Subject: [PATCH] Minor cleanups. --- source/fe/fe_face.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5