]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change argument to reference to avoid unnecessary copies. 15633/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 5 Jul 2023 00:13:26 +0000 (18:13 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 5 Jul 2023 00:13:26 +0000 (18:13 -0600)
include/deal.II/lac/la_parallel_block_vector.h
include/deal.II/lac/la_parallel_block_vector.templates.h

index 693a9fe5ebce432df64aa2a80eb1481f4a8b3c46..3a695837706c75e80e4adb9530fb629b2d144e66 100644 (file)
@@ -551,9 +551,9 @@ namespace LinearAlgebra
       void
       import_elements(
         const LinearAlgebra::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 d4155126b5490f7151f5958cad01e1fba116931d..8312e1a8cabf89d34a4617e0d7ae9423ba4ea7c0 100644 (file)
@@ -859,8 +859,8 @@ namespace LinearAlgebra
     inline void
     BlockVector<Number>::import_elements(
       const LinearAlgebra::ReadWriteVector<Number> &,
-      VectorOperation::values,
-      std::shared_ptr<const Utilities::MPI::CommunicationPatternBase>)
+      const VectorOperation::values,
+      const std::shared_ptr<const Utilities::MPI::CommunicationPatternBase> &)
     {
       AssertThrow(false, ExcNotImplemented());
     }

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.