]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Switch vector to a reference
authorBruno Blais <blais.bruno@gmail.com>
Fri, 4 Jul 2025 12:15:48 +0000 (08:15 -0400)
committerBruno Blais <blais.bruno@gmail.com>
Fri, 4 Jul 2025 12:15:48 +0000 (08:15 -0400)
include/deal.II/grid/grid_generator.h
source/grid/grid_generator.cc
source/grid/grid_generator_from_name.cc

index 156a823252a6e22297260f4313de6141db23a477..5d2087e1334c47ae989a0ccd41a031734a332a94 100644 (file)
@@ -635,7 +635,7 @@ namespace GridGenerator
   void
   uniform_channel_with_cylinder(
     Triangulation<dim>             &tria,
-    const std::vector<unsigned int> lengths_and_heights,
+    const std::vector<unsigned int> &lengths_and_heights,
     const double                    depth                  = 1,
     const unsigned int              depth_division         = 1,
     const double                    shell_region_radius    = 0.75,
index 35010cb6fb1513c6c7891d3f68a22b576d3e37fe..9629a3f46a471a831b1ad8395ec739598b5cf392 100644 (file)
@@ -3832,7 +3832,7 @@ namespace GridGenerator
   template <>
   void
   uniform_channel_with_cylinder(Triangulation<1> &,
-                                const std::vector<unsigned int>,
+                                const std::vector<unsigned int>&,
                                 const double,
                                 unsigned int,
                                 const double,
@@ -3848,7 +3848,7 @@ namespace GridGenerator
   void
   uniform_channel_with_cylinder(
     Triangulation<2>               &tria,
-    const std::vector<unsigned int> lengths_and_heights,
+    const std::vector<unsigned int> &lengths_and_heights,
     const double,
     unsigned int,
     const double       shell_region_radius,
@@ -4025,7 +4025,7 @@ namespace GridGenerator
   void
   uniform_channel_with_cylinder(
     Triangulation<3>               &tria,
-    const std::vector<unsigned int> lengths_and_heights,
+    const std::vector<unsigned int> &lengths_and_heights,
     const double                    depth,
     unsigned int                    depth_division,
     const double                    shell_region_radius,
index ff43ce54a6ee88125030561cf020c4a5fe9f12b6..5a67c27021501ef9dd7fa317089bc8a48d7d5e71 100644 (file)
@@ -122,7 +122,7 @@ namespace GridGenerator
       else if (name == "custom_channel_with_cylinder")
         parse_and_create<dim,
                          dim,
-                         std::vector<unsigned int>,
+                         const std::vector<unsigned int>&,
                          double,
                          unsigned int,
                          double,

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.