From: Wolfgang Bangerth Date: Wed, 5 Jul 2023 00:13:26 +0000 (-0600) Subject: Change argument to reference to avoid unnecessary copies. X-Git-Tag: relicensing~742^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15633%2Fhead;p=dealii.git Change argument to reference to avoid unnecessary copies. --- 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()); }