diff --git a/source/agglomeration_handler.cc b/source/agglomeration_handler.cc index 2c1c403c..cd376840 100644 --- a/source/agglomeration_handler.cc +++ b/source/agglomeration_handler.cc @@ -204,16 +204,15 @@ void AgglomerationHandler::distribute_agglomerated_dofs( const FiniteElement &fe_space) { - Assert((std::is_same_v &, decltype(fe_space)> || - std::is_same_v &, decltype(fe_space)>), - ExcNotImplemented( - "Currently, this interface supports only DGQ and DGP bases.")); if (dynamic_cast *>(&fe_space)) fe = std::make_unique>(fe_space.degree); else if (dynamic_cast *>(&fe_space)) fe = std::make_unique>(fe_space.degree); else - AssertThrow(false, ExcInternalError()); + AssertThrow( + false, + ExcNotImplemented( + "Currently, this interface supports only DGQ and DGP bases.")); if (hybrid_mesh)