From a317ecbb5c3e8aee84b1ede2665819e0638c33a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 22 Oct 2021 11:37:27 -0600 Subject: [PATCH] Avoid generation of expensive FE objects. --- include/deal.II/numerics/data_out_dof_data.templates.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/deal.II/numerics/data_out_dof_data.templates.h b/include/deal.II/numerics/data_out_dof_data.templates.h index 763083b353..9ac6602d83 100644 --- a/include/deal.II/numerics/data_out_dof_data.templates.h +++ b/include/deal.II/numerics/data_out_dof_data.templates.h @@ -311,19 +311,17 @@ namespace internal if (needs_wedge_setup) { Assert(n_subdivisions == 1, ExcNotImplemented()); + quadrature_wedge = std::make_unique>( - FE_WedgeP( - 1 /*note: vtk only supports linear wedges*/) - .get_unit_support_points()); + ReferenceCells::Wedge.get_nodal_type_quadrature()); } if (needs_pyramid_setup) { Assert(n_subdivisions == 1, ExcNotImplemented()); + quadrature_pyramid = std::make_unique>( - FE_PyramidP( - 1 /*note: vtk only supports linear wedges*/) - .get_unit_support_points()); + ReferenceCells::Pyramid.get_nodal_type_quadrature()); } n_q_points = -- 2.39.5