]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Pass some SmartPointer variables by reference 16845/head
authorMartin Kronbichler <martin.kronbichler@rub.de>
Wed, 3 Apr 2024 12:01:13 +0000 (14:01 +0200)
committerMartin Kronbichler <martin.kronbichler@rub.de>
Wed, 3 Apr 2024 12:01:56 +0000 (14:01 +0200)
include/deal.II/non_matching/mapping_info.h

index 85b1864bc8f234b56d8144150069a257ffccb8d4..8ed9afbff0eeb6908e56f4f790ed7797e1ab1ed6 100644 (file)
@@ -52,16 +52,16 @@ namespace NonMatching
     public:
       static UpdateFlags
       required_update_flags(
-        const SmartPointer<const Mapping<dim, spacedim>> mapping,
-        const UpdateFlags                               &update_flags)
+        const SmartPointer<const Mapping<dim, spacedim>> &mapping,
+        const UpdateFlags                                &update_flags)
       {
         return mapping->requires_update_flags(update_flags);
       }
 
       static void
       compute_mapping_data_for_quadrature(
-        const SmartPointer<const Mapping<dim, spacedim>> mapping,
-        const UpdateFlags                               &update_flags_mapping,
+        const SmartPointer<const Mapping<dim, spacedim>> &mapping,
+        const UpdateFlags                                &update_flags_mapping,
         const typename Triangulation<dim, spacedim>::cell_iterator &cell,
         CellSimilarity::Similarity &cell_similarity,
         const Quadrature<dim>      &quadrature,
@@ -100,8 +100,8 @@ namespace NonMatching
 
       static void
       compute_mapping_data_for_immersed_surface_quadrature(
-        const SmartPointer<const Mapping<dim, spacedim>> mapping,
-        const UpdateFlags                               &update_flags_mapping,
+        const SmartPointer<const Mapping<dim, spacedim>> &mapping,
+        const UpdateFlags                                &update_flags_mapping,
         const typename Triangulation<dim, spacedim>::cell_iterator &cell,
         const ImmersedSurfaceQuadrature<dim>                       &quadrature,
         std::shared_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
@@ -136,8 +136,8 @@ namespace NonMatching
 
       static void
       compute_mapping_data_for_face_quadrature(
-        const SmartPointer<const Mapping<dim, spacedim>> mapping,
-        const UpdateFlags                               &update_flags_mapping,
+        const SmartPointer<const Mapping<dim, spacedim>> &mapping,
+        const UpdateFlags                                &update_flags_mapping,
         const typename Triangulation<dim, spacedim>::cell_iterator &cell,
         const unsigned int                                          face_no,
         const Quadrature<dim - 1>                                  &quadrature,

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.