]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Relax an assert in DoFTools::map_dofs_to_support_points 12887/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 26 Oct 2021 18:04:34 +0000 (18:04 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 26 Oct 2021 18:28:24 +0000 (18:28 +0000)
source/dofs/dof_tools.cc

index 8d2725356ad6117f71fc2fb8b57308cef775dfcd..c2bd778caeb7a64f3303268859a9365f26a042dd 100644 (file)
@@ -2134,7 +2134,8 @@ namespace DoFTools
              ++fe_index)
           {
             // check whether every FE in the collection has support points
-            Assert(fe_collection[fe_index].has_support_points(),
+            Assert((fe_collection[fe_index].n_dofs_per_cell() == 0) ||
+                     (fe_collection[fe_index].has_support_points()),
                    typename FiniteElement<dim>::ExcFEHasNoSupportPoints());
             q_coll_dummy.push_back(Quadrature<dim>(
               fe_collection[fe_index].get_unit_support_points()));

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.