From: Fabian Castelli Date: Mon, 23 May 2022 08:14:55 +0000 (+0200) Subject: Clearify LA::d::BlockVector::reinit input argument X-Git-Tag: v9.4.0-rc1~171^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e2ec179a8c8d5fd1ac7b7c99fcbe34a0281fada;p=dealii.git Clearify LA::d::BlockVector::reinit input argument --- diff --git a/include/deal.II/lac/la_parallel_block_vector.h b/include/deal.II/lac/la_parallel_block_vector.h index e11b2450b8..33970cfedf 100644 --- a/include/deal.II/lac/la_parallel_block_vector.h +++ b/include/deal.II/lac/la_parallel_block_vector.h @@ -276,7 +276,7 @@ namespace LinearAlgebra * be routed to the wrong block. */ void - reinit(const std::vector &N, + reinit(const std::vector &block_sizes, const bool omit_zeroing_entries = false); /** diff --git a/include/deal.II/lac/la_parallel_block_vector.templates.h b/include/deal.II/lac/la_parallel_block_vector.templates.h index e9b08d08f9..3a5f0c0816 100644 --- a/include/deal.II/lac/la_parallel_block_vector.templates.h +++ b/include/deal.II/lac/la_parallel_block_vector.templates.h @@ -127,15 +127,15 @@ namespace LinearAlgebra template void - BlockVector::reinit(const std::vector &n, + BlockVector::reinit(const std::vector &block_sizes, const bool omit_zeroing_entries) { - this->block_indices.reinit(n); + this->block_indices.reinit(block_sizes); if (this->components.size() != this->n_blocks()) this->components.resize(this->n_blocks()); for (size_type i = 0; i < this->n_blocks(); ++i) - this->components[i].reinit(n[i], omit_zeroing_entries); + this->components[i].reinit(block_sizes[i], omit_zeroing_entries); }