]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Attempt to fix for step.90 crashing with the assert previously implemented
authorOreste Marquis <oreste.marquis@hotmail.fr>
Thu, 15 Aug 2024 23:03:10 +0000 (19:03 -0400)
committerOreste Marquis <oreste.marquis@hotmail.fr>
Thu, 15 Aug 2024 23:03:10 +0000 (19:03 -0400)
include/deal.II/numerics/vector_tools_interpolate.templates.h

index 24ac01d0459ac9401845cde710beda1b094ea36f..1e9633c441793b64e7580a476daf1160c09a37fd 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <deal.II/dofs/dof_tools.h>
 
+#include <deal.II/fe/fe_nothing.h>
 #include <deal.II/fe/fe_q.h>
 #include <deal.II/fe/fe_system.h>
 
@@ -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 "

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.