From ca9f49368fd59924fd520b138fcbe33591e721e3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 4 Jul 2023 18:13:26 -0600 Subject: [PATCH] Change argument to reference to avoid unnecessary copies. --- include/deal.II/lac/la_parallel_block_vector.h | 6 +++--- include/deal.II/lac/la_parallel_block_vector.templates.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/deal.II/lac/la_parallel_block_vector.h b/include/deal.II/lac/la_parallel_block_vector.h index 693a9fe5eb..3a69583770 100644 --- a/include/deal.II/lac/la_parallel_block_vector.h +++ b/include/deal.II/lac/la_parallel_block_vector.h @@ -551,9 +551,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_block_vector.templates.h b/include/deal.II/lac/la_parallel_block_vector.templates.h index d4155126b5..8312e1a8ca 100644 --- a/include/deal.II/lac/la_parallel_block_vector.templates.h +++ b/include/deal.II/lac/la_parallel_block_vector.templates.h @@ -859,8 +859,8 @@ namespace LinearAlgebra inline void BlockVector::import_elements( const LinearAlgebra::ReadWriteVector &, - VectorOperation::values, - std::shared_ptr) + const VectorOperation::values, + const std::shared_ptr &) { AssertThrow(false, ExcNotImplemented()); } -- 2.39.5