]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Return vector partitioner by reference 3474/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 5 Nov 2016 16:40:01 +0000 (17:40 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 5 Nov 2016 16:40:01 +0000 (17:40 +0100)
include/deal.II/lac/la_parallel_vector.h

index 22723a5c15e365979c207dd806d424f549a2f093..43fa05a2641011adbe36c27fe1cefbd9258456b7 100644 (file)
@@ -925,7 +925,7 @@ namespace LinearAlgebra
        * respective reinit() call, for additional queries regarding the
        * parallel communication, or the compatibility of partitioners.
        */
-      std_cxx11::shared_ptr<const Utilities::MPI::Partitioner>
+      const std_cxx11::shared_ptr<const Utilities::MPI::Partitioner> &
       get_partitioner () const;
 
       /**
@@ -1430,7 +1430,7 @@ namespace LinearAlgebra
 
     template <typename Number>
     inline
-    std_cxx11::shared_ptr<const Utilities::MPI::Partitioner>
+    const std_cxx11::shared_ptr<const Utilities::MPI::Partitioner> &
     Vector<Number>::get_partitioner () const
     {
       return partitioner;

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.