From: Wolfgang Bangerth Date: Sun, 9 Jul 2023 04:53:09 +0000 (-0600) Subject: Make input arguments 'const'. X-Git-Tag: relicensing~708^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=462db191dbf8439b5a3bd3495b1e8f2a73912622;p=dealii.git Make input arguments 'const'. --- 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) {