From 278b3948793c677ffa8947a35078d6c912775d5a Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 3 Apr 2024 14:01:13 +0200 Subject: [PATCH] Pass some SmartPointer variables by reference --- include/deal.II/non_matching/mapping_info.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/deal.II/non_matching/mapping_info.h b/include/deal.II/non_matching/mapping_info.h index 85b1864bc8..8ed9afbff0 100644 --- a/include/deal.II/non_matching/mapping_info.h +++ b/include/deal.II/non_matching/mapping_info.h @@ -52,16 +52,16 @@ namespace NonMatching public: static UpdateFlags required_update_flags( - const SmartPointer> mapping, - const UpdateFlags &update_flags) + const SmartPointer> &mapping, + const UpdateFlags &update_flags) { return mapping->requires_update_flags(update_flags); } static void compute_mapping_data_for_quadrature( - const SmartPointer> mapping, - const UpdateFlags &update_flags_mapping, + const SmartPointer> &mapping, + const UpdateFlags &update_flags_mapping, const typename Triangulation::cell_iterator &cell, CellSimilarity::Similarity &cell_similarity, const Quadrature &quadrature, @@ -100,8 +100,8 @@ namespace NonMatching static void compute_mapping_data_for_immersed_surface_quadrature( - const SmartPointer> mapping, - const UpdateFlags &update_flags_mapping, + const SmartPointer> &mapping, + const UpdateFlags &update_flags_mapping, const typename Triangulation::cell_iterator &cell, const ImmersedSurfaceQuadrature &quadrature, std::shared_ptr::InternalDataBase> @@ -136,8 +136,8 @@ namespace NonMatching static void compute_mapping_data_for_face_quadrature( - const SmartPointer> mapping, - const UpdateFlags &update_flags_mapping, + const SmartPointer> &mapping, + const UpdateFlags &update_flags_mapping, const typename Triangulation::cell_iterator &cell, const unsigned int face_no, const Quadrature &quadrature, -- 2.39.5