From 462db191dbf8439b5a3bd3495b1e8f2a73912622 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 8 Jul 2023 22:53:09 -0600 Subject: [PATCH] Make input arguments 'const'. --- include/deal.II/lac/cuda_vector.h | 6 +++--- source/lac/cuda_vector.cc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/deal.II/lac/cuda_vector.h b/include/deal.II/lac/cuda_vector.h index be68d1ed95..3fcbe3f6d8 100644 --- a/include/deal.II/lac/cuda_vector.h +++ b/include/deal.II/lac/cuda_vector.h @@ -140,9 +140,9 @@ namespace LinearAlgebra void import_elements( const 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/source/lac/cuda_vector.cc b/source/lac/cuda_vector.cc index 9e3e54ef37..60d24750a7 100644 --- a/source/lac/cuda_vector.cc +++ b/source/lac/cuda_vector.cc @@ -128,8 +128,8 @@ namespace LinearAlgebra void Vector::import_elements( const ReadWriteVector &V, - VectorOperation::values operation, - std::shared_ptr) + const VectorOperation::values operation, + const std::shared_ptr &) { if (operation == VectorOperation::insert) { -- 2.39.5