]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid generation of expensive FE objects. 12865/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 22 Oct 2021 17:37:27 +0000 (11:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 22 Oct 2021 22:53:54 +0000 (16:53 -0600)
include/deal.II/numerics/data_out_dof_data.templates.h

index 763083b3537678e5e8917e27e02ed9b218b5a114..9ac6602d8376b887fef8a17eda3b06507cd806e5 100644 (file)
@@ -311,19 +311,17 @@ 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*/)
-                  .get_unit_support_points());
+                ReferenceCells::Wedge.get_nodal_type_quadrature<dim>());
             }
 
           if (needs_pyramid_setup)
             {
               Assert(n_subdivisions == 1, ExcNotImplemented());
+
               quadrature_pyramid = std::make_unique<Quadrature<dim>>(
-                FE_PyramidP<dim, spacedim>(
-                  1 /*note: vtk only supports linear wedges*/)
-                  .get_unit_support_points());
+                ReferenceCells::Pyramid.get_nodal_type_quadrature<dim>());
             }
 
           n_q_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.