]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clearify LA::d::BlockVector::reinit input argument 13789/head
authorFabian Castelli <fabian.castelli@kit.edu>
Mon, 23 May 2022 08:14:55 +0000 (10:14 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Mon, 23 May 2022 08:14:55 +0000 (10:14 +0200)
include/deal.II/lac/la_parallel_block_vector.h
include/deal.II/lac/la_parallel_block_vector.templates.h

index e11b2450b8c1ae8019b84c5b84576288a5f9c2f4..33970cfedf637503fa5a8b90b45a6d515b5c3ab9 100644 (file)
@@ -276,7 +276,7 @@ namespace LinearAlgebra
        * be routed to the wrong block.
        */
       void
-      reinit(const std::vector<size_type> &N,
+      reinit(const std::vector<size_type> &block_sizes,
              const bool                    omit_zeroing_entries = false);
 
       /**
index e9b08d08f9f91bbdfcb5a92bc182890317d2a555..3a5f0c081600540804726e5fb7737dcc0cb43fd5 100644 (file)
@@ -127,15 +127,15 @@ namespace LinearAlgebra
 
     template <typename Number>
     void
-    BlockVector<Number>::reinit(const std::vector<size_type> &n,
+    BlockVector<Number>::reinit(const std::vector<size_type> &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);
     }
 
 

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.