]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix interpolate for FE_Nothing 17950/head
authorMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Fri, 20 Dec 2024 12:15:46 +0000 (13:15 +0100)
committerMaximilian Bergbauer <maximilian.bergbauer@tum.de>
Fri, 20 Dec 2024 12:15:46 +0000 (13:15 +0100)
include/deal.II/numerics/vector_tools_interpolate.templates.h

index 21b1dea516ec9d55e40adfa2246221f4213a199d..30a47571bb4b6e37932931cf2bf3b4946ae081ca 100644 (file)
@@ -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<dim>());
+              continue;
+            }
           Assert(fe_i.has_generalized_support_points(),
                  ExcMessage(
                    "The finite element does not have generalized support "

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.