]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add comments clarifying some numbers.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 Oct 2024 00:30:31 +0000 (18:30 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 Oct 2024 00:30:31 +0000 (18:30 -0600)
source/fe/fe.cc

index 77a9004d2ba3efdb73d0a07b119799e871cc57eb..0998b8801ced29f1fef80424ceb8441812778dac 100644 (file)
@@ -888,9 +888,17 @@ FiniteElement<dim, spacedim>::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<dim>(),
+               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)};

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.