]> https://gitweb.dealii.org/ - dealii.git/commitdiff
ScaLAPACKMatrix: pass process grid consistently as const ref. to shared_ptr 7302/head
authorbenjamin <benjamin.brands@fau.de>
Mon, 8 Oct 2018 19:45:29 +0000 (21:45 +0200)
committerbenjamin <benjamin.brands@fau.de>
Mon, 8 Oct 2018 21:09:36 +0000 (23:09 +0200)
include/deal.II/lac/scalapack.h
source/lac/scalapack.cc

index 3198d1a34ffcccc868c18490ba101efd4e93c41b..70c5e2512f97e99eea5db3956a672151021ab280 100644 (file)
@@ -130,10 +130,10 @@ public:
    * using the process grid in @p process_grid.
    */
   ScaLAPACKMatrix(
-    const size_type                                          size,
-    const std::shared_ptr<const Utilities::MPI::ProcessGrid> process_grid,
-    const size_type                                          block_size = 32,
-    const LAPACKSupport::Property                            property =
+    const size_type                                           size,
+    const std::shared_ptr<const Utilities::MPI::ProcessGrid> &process_grid,
+    const size_type                                           block_size = 32,
+    const LAPACKSupport::Property                             property =
       LAPACKSupport::Property::symmetric);
 
   /**
@@ -158,8 +158,8 @@ public:
    * Initialize the square matrix of size @p size and distributed using the grid @p process_grid.
    */
   void
-  reinit(const size_type                                          size,
-         const std::shared_ptr<const Utilities::MPI::ProcessGrid> process_grid,
+  reinit(const size_type                                           size,
+         const std::shared_ptr<const Utilities::MPI::ProcessGrid> &process_grid,
          const size_type               block_size = 32,
          const LAPACKSupport::Property property =
            LAPACKSupport::Property::symmetric);
index 5d301e3b362bd9af156af70823fe3c9df97b7d97..714cd82f1fc85f38475fec02b07f9d13166ae2db 100644 (file)
@@ -102,10 +102,10 @@ ScaLAPACKMatrix<NumberType>::ScaLAPACKMatrix(
 
 template <typename NumberType>
 ScaLAPACKMatrix<NumberType>::ScaLAPACKMatrix(
-  const size_type                                          size,
-  const std::shared_ptr<const Utilities::MPI::ProcessGrid> process_grid,
-  const size_type                                          block_size,
-  const LAPACKSupport::Property                            property)
+  const size_type                                           size,
+  const std::shared_ptr<const Utilities::MPI::ProcessGrid> &process_grid,
+  const size_type                                           block_size,
+  const LAPACKSupport::Property                             property)
   : ScaLAPACKMatrix<NumberType>(size,
                                 size,
                                 process_grid,
@@ -194,10 +194,10 @@ ScaLAPACKMatrix<NumberType>::reinit(
 template <typename NumberType>
 void
 ScaLAPACKMatrix<NumberType>::reinit(
-  const size_type                                          size,
-  const std::shared_ptr<const Utilities::MPI::ProcessGrid> process_grid,
-  const size_type                                          block_size,
-  const LAPACKSupport::Property                            property)
+  const size_type                                           size,
+  const std::shared_ptr<const Utilities::MPI::ProcessGrid> &process_grid,
+  const size_type                                           block_size,
+  const LAPACKSupport::Property                             property)
 {
   reinit(size, size, process_grid, block_size, block_size, property);
 }

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.