From: Oreste Marquis Date: Thu, 15 Aug 2024 23:03:10 +0000 (-0400) Subject: Attempt to fix for step.90 crashing with the assert previously implemented X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af413dea7c04266bc7271f71b9fb728a1744c542;p=dealii.git Attempt to fix for step.90 crashing with the assert previously implemented --- diff --git a/include/deal.II/numerics/vector_tools_interpolate.templates.h b/include/deal.II/numerics/vector_tools_interpolate.templates.h index 24ac01d045..1e9633c441 100644 --- a/include/deal.II/numerics/vector_tools_interpolate.templates.h +++ b/include/deal.II/numerics/vector_tools_interpolate.templates.h @@ -18,6 +18,7 @@ #include +#include #include #include @@ -321,6 +322,9 @@ namespace VectorTools for (unsigned int fe_index = 0; fe_index < fe.size(); ++fe_index) { const auto &fe_i = fe[fe_index]; + // If the finite element has no dofs, we can skip it + if (fe_i->dofs_per_cell == 0) + continue; Assert(fe_i.has_generalized_support_points(), ExcMessage( "The finite element does not have generalized support "