From a0696a18f858692e4f6dd6e9dcd888eaeb951b8b Mon Sep 17 00:00:00 2001 From: Maximilian Bergbauer Date: Fri, 20 Dec 2024 13:15:46 +0100 Subject: [PATCH] Fix interpolate for FE_Nothing --- .../deal.II/numerics/vector_tools_interpolate.templates.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/deal.II/numerics/vector_tools_interpolate.templates.h b/include/deal.II/numerics/vector_tools_interpolate.templates.h index 21b1dea516..30a47571bb 100644 --- a/include/deal.II/numerics/vector_tools_interpolate.templates.h +++ b/include/deal.II/numerics/vector_tools_interpolate.templates.h @@ -324,7 +324,10 @@ namespace VectorTools 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; + { + support_quadrature.push_back(Quadrature()); + continue; + } Assert(fe_i.has_generalized_support_points(), ExcMessage( "The finite element does not have generalized support " -- 2.39.5