From: Peter Munch Date: Wed, 27 Sep 2023 09:32:17 +0000 (+0200) Subject: MappingDataOnTheFly: make FE_Nothing unique_ptr X-Git-Tag: relicensing~456^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16050%2Fhead;p=dealii.git MappingDataOnTheFly: make FE_Nothing unique_ptr --- diff --git a/include/deal.II/matrix_free/mapping_data_on_the_fly.h b/include/deal.II/matrix_free/mapping_data_on_the_fly.h index 91e8ff71f2..d0d78caf99 100644 --- a/include/deal.II/matrix_free/mapping_data_on_the_fly.h +++ b/include/deal.II/matrix_free/mapping_data_on_the_fly.h @@ -147,7 +147,7 @@ namespace internal * Dummy finite element object necessary for initializing the FEValues * object. */ - FE_Nothing fe_dummy; + std::unique_ptr> fe_dummy; /** * An underlying FEValues object that performs the (scalar) evaluation. @@ -174,9 +174,10 @@ namespace internal const Mapping &mapping, const Quadrature<1> &quadrature, const UpdateFlags update_flags) - : fe_values(std::make_unique>( + : fe_dummy(std::make_unique>()) + , fe_values(std::make_unique>( mapping, - fe_dummy, + *fe_dummy, Quadrature(quadrature), MappingInfoStorage::compute_update_flags( update_flags)))