]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make input arguments 'const'. 15688/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 9 Jul 2023 04:53:09 +0000 (22:53 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Jul 2023 06:12:17 +0000 (00:12 -0600)
include/deal.II/lac/cuda_vector.h
source/lac/cuda_vector.cc

index be68d1ed952309e40ac40d5900fd9a28e8c58818..3fcbe3f6d86f48a26a9158ac7e82cb10b2ce4354 100644 (file)
@@ -140,9 +140,9 @@ namespace LinearAlgebra
       void
       import_elements(
         const ReadWriteVector<Number> &V,
-        VectorOperation::values        operation,
-        std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
-          communication_pattern = {});
+        const VectorOperation::values  operation,
+        const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>
+          &communication_pattern = {});
 
       /**
        * @deprecated Use import_elements() instead.
index 9e3e54ef37688972045cf9775367813163c940ee..60d24750a7c4851851b8383e4773cdd5bc1f520e 100644 (file)
@@ -128,8 +128,8 @@ namespace LinearAlgebra
     void
     Vector<Number>::import_elements(
       const ReadWriteVector<Number> &V,
-      VectorOperation::values        operation,
-      std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>)
+      const VectorOperation::values  operation,
+      const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase> &)
     {
       if (operation == VectorOperation::insert)
         {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.