From ba857dfbe67c28263e4882e48203557c1a5aca47 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 8 Oct 2024 18:30:31 -0600 Subject: [PATCH] Add comments clarifying some numbers. --- source/fe/fe.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/fe/fe.cc b/source/fe/fe.cc index 77a9004d2b..0998b8801c 100644 --- a/source/fe/fe.cc +++ b/source/fe/fe.cc @@ -888,9 +888,17 @@ FiniteElement::interface_constraints_size() const case 1: return {0U, 0U}; case 2: + // We have to interpolate from the DoFs in the interior of the + // the two child faces (=lines) and the one central vertex + // to the DoFs of the parent face: return {this->n_dofs_per_vertex() + 2 * this->n_dofs_per_line(), this->n_dofs_per_face(face_no)}; case 3: + // We have to interpolate from the DoFs in the interior of the + // the child faces (=quads or tris) and the vertices that are + // not part of the parent face, to the DoFs of the parent face: + Assert(this->reference_cell() == ReferenceCells::get_hypercube(), + ExcNotImplemented()); return {5 * this->n_dofs_per_vertex() + 12 * this->n_dofs_per_line() + 4 * this->n_dofs_per_quad(face_no), this->n_dofs_per_face(face_no)}; -- 2.39.5