From af413dea7c04266bc7271f71b9fb728a1744c542 Mon Sep 17 00:00:00 2001 From: Oreste Marquis Date: Thu, 15 Aug 2024 19:03:10 -0400 Subject: [PATCH] Attempt to fix for step.90 crashing with the assert previously implemented --- include/deal.II/numerics/vector_tools_interpolate.templates.h | 4 ++++ 1 file changed, 4 insertions(+) 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 " -- 2.39.5