From: Wolfgang Bangerth Date: Fri, 18 Nov 2022 16:17:37 +0000 (-0700) Subject: Add a bit of documentation. X-Git-Tag: v9.5.0-rc1~837^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bab53af54af710a84d2488d4c5f3900207e094b;p=dealii.git Add a bit of documentation. --- diff --git a/source/fe/fe_simplex_p.cc b/source/fe/fe_simplex_p.cc index 81021951de..155cf32169 100644 --- a/source/fe/fe_simplex_p.cc +++ b/source/fe/fe_simplex_p.cc @@ -757,7 +757,6 @@ FE_SimplexP::hp_line_dof_identities( const FiniteElement &fe_other) const { AssertDimension(dim, 2); - Assert(this->degree <= 2, ExcNotImplemented()); if (const FE_SimplexP *fe_p_other = dynamic_cast *>(&fe_other)) @@ -769,8 +768,6 @@ FE_SimplexP::hp_line_dof_identities( // hard-coded and we iterate over points on the first line which begin // after the 3 vertex points in the complete list of unit support points - Assert(fe_p_other->degree <= 2, ExcNotImplemented()); - std::vector> identities; for (unsigned int i = 0; i < this->degree - 1; ++i) @@ -778,6 +775,15 @@ FE_SimplexP::hp_line_dof_identities( if (std::fabs(this->unit_support_points[i + 3][0] - fe_p_other->unit_support_points[i + 3][0]) < 1e-14) identities.emplace_back(i, j); + else + { + // If nodes are not located in the same place, we have to + // interpolate. This is then not handled through the + // current function, but via interpolation matrices that + // result in constraints, rather than identities. Since + // that happens in a different function, there is nothing + // for us to do here. + } return identities; } @@ -807,13 +813,26 @@ FE_SimplexP::hp_line_dof_identities( fe_q_other->get_unit_support_points() [index_map_inverse_q_other[j + 1]][0]) < 1e-14) identities.emplace_back(i, j); + else + { + // If nodes are not located in the same place, we have to + // interpolate. This will then also + // capture the case where the FE_Q has a different polynomial + // degree than the current element. In either case, the resulting + // constraints are computed elsewhere, rather than via the + // identities this function returns: Since + // that happens in a different function, there is nothing + // for us to do here. + } return identities; } else if (dynamic_cast *>(&fe_other) != nullptr) { - // the FE_Nothing has no degrees of freedom, so there are no - // equivalencies to be recorded + // The FE_Nothing has no degrees of freedom, so there are no + // equivalencies to be recorded. (If the FE_Nothing is dominating, + // then this will also leads to constraints, but we are not concerned + // with this here.) return {}; } else if (fe_other.n_unique_faces() == 1 && fe_other.n_dofs_per_face(0) == 0)