From cddffb5e7ec0a3b853c83f9f0af5a5bd0f50b03b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 4 Jul 2023 18:16:31 -0600 Subject: [PATCH] Change argument to reference to avoid unnecessary copies. --- include/deal.II/lac/trilinos_epetra_vector.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/deal.II/lac/trilinos_epetra_vector.h b/include/deal.II/lac/trilinos_epetra_vector.h index e65d0ca6f6..0c4cbb7a78 100644 --- a/include/deal.II/lac/trilinos_epetra_vector.h +++ b/include/deal.II/lac/trilinos_epetra_vector.h @@ -147,10 +147,11 @@ namespace LinearAlgebra */ DEAL_II_DEPRECATED void - import(const ReadWriteVector &V, - VectorOperation::values operation, - std::shared_ptr - communication_pattern = {}) + import( + const ReadWriteVector &V, + const VectorOperation::values operation, + const std::shared_ptr + &communication_pattern = {}) { import_elements(V, operation, communication_pattern); } -- 2.39.5