]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add one default parameter, and documentation.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 11 Feb 2006 06:28:50 +0000 (06:28 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 11 Feb 2006 06:28:50 +0000 (06:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@12317 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_vector.h

index aaf5540745699c1d8afecf058496c8b128696483..1417f16abd05e195e0f714672dbaf0a60d7f2a45 100644 (file)
@@ -192,11 +192,23 @@ class BlockVector : public BlockVectorBase<Vector<Number> >
                                      * contain <tt>num_blocks</tt> blocks of
                                      * size <tt>block_size</tt> each.
                                      *
+                                     * If the second argument is left
+                                     * at its default value, then the
+                                     * block vector allocates the
+                                     * specified number of blocks but
+                                     * leaves them at zero size. You
+                                     * then need to later
+                                     * reinitialize the individual
+                                     * blocks, and call
+                                     * collect_sizes() to update the
+                                     * block system's knowledge of
+                                     * its individual block's sizes.
+                                     * 
                                      * If <tt>fast==false</tt>, the vector
                                      * is filled with zeros.
                                      */
     void reinit (const unsigned int num_blocks,
-                const unsigned int block_size,
+                const unsigned int block_size = 0,
                 const bool fast = false);
   
                                     /**

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.