From dc99dcdbee69f38bce26fa29b17839e054deac34 Mon Sep 17 00:00:00 2001 From: benjamin Date: Mon, 8 Oct 2018 21:45:29 +0200 Subject: [PATCH] ScaLAPACKMatrix: pass process grid consistently as const ref. to shared_ptr --- include/deal.II/lac/scalapack.h | 12 ++++++------ source/lac/scalapack.cc | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/deal.II/lac/scalapack.h b/include/deal.II/lac/scalapack.h index 3198d1a34f..70c5e2512f 100644 --- a/include/deal.II/lac/scalapack.h +++ b/include/deal.II/lac/scalapack.h @@ -130,10 +130,10 @@ public: * using the process grid in @p process_grid. */ ScaLAPACKMatrix( - const size_type size, - const std::shared_ptr process_grid, - const size_type block_size = 32, - const LAPACKSupport::Property property = + const size_type size, + const std::shared_ptr &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 process_grid, + reinit(const size_type size, + const std::shared_ptr &process_grid, const size_type block_size = 32, const LAPACKSupport::Property property = LAPACKSupport::Property::symmetric); diff --git a/source/lac/scalapack.cc b/source/lac/scalapack.cc index 5d301e3b36..714cd82f1f 100644 --- a/source/lac/scalapack.cc +++ b/source/lac/scalapack.cc @@ -102,10 +102,10 @@ ScaLAPACKMatrix::ScaLAPACKMatrix( template ScaLAPACKMatrix::ScaLAPACKMatrix( - const size_type size, - const std::shared_ptr process_grid, - const size_type block_size, - const LAPACKSupport::Property property) + const size_type size, + const std::shared_ptr &process_grid, + const size_type block_size, + const LAPACKSupport::Property property) : ScaLAPACKMatrix(size, size, process_grid, @@ -194,10 +194,10 @@ ScaLAPACKMatrix::reinit( template void ScaLAPACKMatrix::reinit( - const size_type size, - const std::shared_ptr process_grid, - const size_type block_size, - const LAPACKSupport::Property property) + const size_type size, + const std::shared_ptr &process_grid, + const size_type block_size, + const LAPACKSupport::Property property) { reinit(size, size, process_grid, block_size, block_size, property); } -- 2.39.5