From: Marco Feder Date: Wed, 11 Dec 2024 09:08:53 +0000 (+0000) Subject: Remove assert in dof identities for DGP X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cbd40273e36bc3636dc80f9f46f8b9d86dff47c;p=dealii.git Remove assert in dof identities for DGP --- diff --git a/source/fe/fe_dgp.cc b/source/fe/fe_dgp.cc index acd6ec9442..23c1d6bf16 100644 --- a/source/fe/fe_dgp.cc +++ b/source/fe/fe_dgp.cc @@ -166,16 +166,13 @@ FE_DGP::hp_constraints_are_implemented() const template std::vector> FE_DGP::hp_vertex_dof_identities( - const FiniteElement &fe_other) const + const FiniteElement & /*fe_other*/) const { - // there are no such constraints for DGP elements at all - if (dynamic_cast *>(&fe_other) != nullptr) - return std::vector>(); - else - { - DEAL_II_NOT_IMPLEMENTED(); - return std::vector>(); - } + // this element is discontinuous, so by definition there can + // be no identities between its dofs and those of any neighbor + // (of whichever type the neighbor may be -- after all, we have + // no face dofs on this side to begin with) + return std::vector>(); }