From: Maximilian Bergbauer Date: Fri, 20 Dec 2024 12:15:46 +0000 (+0100) Subject: Fix interpolate for FE_Nothing X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0696a18f858692e4f6dd6e9dcd888eaeb951b8b;p=dealii.git Fix interpolate for FE_Nothing --- 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 "