From ff5831944403318e01e6e946cc7b62e9dcba1e91 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 6 Jul 2023 09:48:16 -0600 Subject: [PATCH] Make an argument a const reference. --- include/deal.II/lac/la_parallel_vector.h | 6 +++--- include/deal.II/lac/la_parallel_vector.templates.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/deal.II/lac/la_parallel_vector.h b/include/deal.II/lac/la_parallel_vector.h index 6b117fd4a7..02a569d907 100644 --- a/include/deal.II/lac/la_parallel_vector.h +++ b/include/deal.II/lac/la_parallel_vector.h @@ -750,9 +750,9 @@ namespace LinearAlgebra void import_elements( const LinearAlgebra::ReadWriteVector &V, - VectorOperation::values operation, - std::shared_ptr - communication_pattern = {}); + const VectorOperation::values operation, + const std::shared_ptr + &communication_pattern = {}); /** * @deprecated Use import_elements() instead. diff --git a/include/deal.II/lac/la_parallel_vector.templates.h b/include/deal.II/lac/la_parallel_vector.templates.h index 84bbd3b1f3..8be03ade57 100644 --- a/include/deal.II/lac/la_parallel_vector.templates.h +++ b/include/deal.II/lac/la_parallel_vector.templates.h @@ -912,7 +912,7 @@ namespace LinearAlgebra void Vector::import_elements( const Vector &src, - VectorOperation::values operation) + const VectorOperation::values operation) { Assert(src.partitioner.get() != nullptr, ExcNotInitialized()); Assert(partitioner->locally_owned_range() == @@ -1253,9 +1253,9 @@ namespace LinearAlgebra void Vector::import_elements( const ReadWriteVector &V, - VectorOperation::values operation, - std::shared_ptr - communication_pattern) + const VectorOperation::values operation, + const std::shared_ptr + &communication_pattern) { // If no communication pattern is given, create one. Otherwise, use the // given one. -- 2.39.5