Skip to content

Commit

Permalink
Remove assert in dof identities for DGP
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrmrc committed Dec 11, 2024
1 parent b2108aa commit 3cbd402
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions source/fe/fe_dgp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,13 @@ FE_DGP<dim, spacedim>::hp_constraints_are_implemented() const
template <int dim, int spacedim>
std::vector<std::pair<unsigned int, unsigned int>>
FE_DGP<dim, spacedim>::hp_vertex_dof_identities(
const FiniteElement<dim, spacedim> &fe_other) const
const FiniteElement<dim, spacedim> & /*fe_other*/) const
{
// there are no such constraints for DGP elements at all
if (dynamic_cast<const FE_DGP<dim, spacedim> *>(&fe_other) != nullptr)
return std::vector<std::pair<unsigned int, unsigned int>>();
else
{
DEAL_II_NOT_IMPLEMENTED();
return std::vector<std::pair<unsigned int, unsigned int>>();
}
// 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<std::pair<unsigned int, unsigned int>>();
}


Expand Down

0 comments on commit 3cbd402

Please sign in to comment.