Skip to content

Commit

Permalink
Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrmrc committed Sep 9, 2024
1 parent c0d7117 commit 82c27ce
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions source/agglomeration_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,15 @@ void
AgglomerationHandler<dim, spacedim>::distribute_agglomerated_dofs(
const FiniteElement<dim> &fe_space)
{
Assert((std::is_same_v<const FE_DGQ<dim> &, decltype(fe_space)> ||
std::is_same_v<const FE_DGP<dim> &, decltype(fe_space)>),
ExcNotImplemented(
"Currently, this interface supports only DGQ and DGP bases."));
if (dynamic_cast<const FE_DGQ<dim> *>(&fe_space))
fe = std::make_unique<FE_DGQ<dim>>(fe_space.degree);
else if (dynamic_cast<const FE_DGP<dim> *>(&fe_space))
fe = std::make_unique<FE_DGP<dim>>(fe_space.degree);
else
AssertThrow(false, ExcInternalError());
AssertThrow(
false,
ExcNotImplemented(
"Currently, this interface supports only DGQ and DGP bases."));


if (hybrid_mesh)
Expand Down

0 comments on commit 82c27ce

Please sign in to comment.