]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add one, fix another assertion. 12834/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 15 Oct 2021 17:28:37 +0000 (11:28 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 15 Oct 2021 17:28:37 +0000 (11:28 -0600)
include/deal.II/numerics/data_out_dof_data.templates.h

index 1750001cd276b39a87447adf6404d03b41566d25..e96b4cea10780c02c70da309027526fae4319f57 100644 (file)
@@ -273,6 +273,7 @@ namespace internal
 
           if (needs_wedge_setup)
             {
+              Assert(n_subdivisions == 1, ExcNotImplemented());
               quadrature_wedge = std::make_unique<Quadrature<dim>>(
                 FE_WedgeP<dim, spacedim>(
                   1 /*note: vtk only supports linear wedges*/)
@@ -281,8 +282,7 @@ namespace internal
 
           if (needs_pyramid_setup)
             {
-              Assert(1 <= n_subdivisions && n_subdivisions <= 2,
-                     ExcNotImplemented());
+              Assert(n_subdivisions == 1, ExcNotImplemented());
 
               std::vector<Point<dim>> points;
 
@@ -349,7 +349,7 @@ namespace internal
                 }
             }
         }
-      else
+      else // build FEFaceValues objects instead
         {
           dealii::hp::QCollection<dim - 1> quadrature(
             QIterated<dim - 1>(QTrapezoid<1>(), n_subdivisions));

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.