From a6347dfd1e249db6524379a54e74382cd5d6e286 Mon Sep 17 00:00:00 2001 From: Bruno Blais Date: Fri, 4 Jul 2025 08:15:48 -0400 Subject: [PATCH] Switch vector to a reference --- include/deal.II/grid/grid_generator.h | 2 +- source/grid/grid_generator.cc | 6 +++--- source/grid/grid_generator_from_name.cc | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/deal.II/grid/grid_generator.h b/include/deal.II/grid/grid_generator.h index 156a823252..5d2087e133 100644 --- a/include/deal.II/grid/grid_generator.h +++ b/include/deal.II/grid/grid_generator.h @@ -635,7 +635,7 @@ namespace GridGenerator void uniform_channel_with_cylinder( Triangulation &tria, - const std::vector lengths_and_heights, + const std::vector &lengths_and_heights, const double depth = 1, const unsigned int depth_division = 1, const double shell_region_radius = 0.75, diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 35010cb6fb..9629a3f46a 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -3832,7 +3832,7 @@ namespace GridGenerator template <> void uniform_channel_with_cylinder(Triangulation<1> &, - const std::vector, + const std::vector&, const double, unsigned int, const double, @@ -3848,7 +3848,7 @@ namespace GridGenerator void uniform_channel_with_cylinder( Triangulation<2> &tria, - const std::vector lengths_and_heights, + const std::vector &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 lengths_and_heights, + const std::vector &lengths_and_heights, const double depth, unsigned int depth_division, const double shell_region_radius, diff --git a/source/grid/grid_generator_from_name.cc b/source/grid/grid_generator_from_name.cc index ff43ce54a6..5a67c27021 100644 --- a/source/grid/grid_generator_from_name.cc +++ b/source/grid/grid_generator_from_name.cc @@ -122,7 +122,7 @@ namespace GridGenerator else if (name == "custom_channel_with_cylinder") parse_and_create, + const std::vector&, double, unsigned int, double, -- 2.39.5