From: benjamin Date: Mon, 8 Oct 2018 19:45:29 +0000 (+0200) Subject: ScaLAPACKMatrix: pass process grid consistently as const ref. to shared_ptr X-Git-Tag: v9.1.0-rc1~648^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7302%2Fhead;p=dealii.git ScaLAPACKMatrix: pass process grid consistently as const ref. to shared_ptr --- 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); }