]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Clarify names of parameters.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Mar 2003 14:45:49 +0000 (14:45 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Mar 2003 14:45:49 +0000 (14:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@7269 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_sparsity_pattern.h
deal.II/lac/source/block_sparsity_pattern.cc

index cac00b158b5d056a67ef347c862d04721f7e84a9..d741be8839632df8849eab7d6a4d90dd10d418de 100644 (file)
@@ -97,8 +97,8 @@ class BlockSparsityPatternBase : public Subscriptor
                                      * to call @p{collect_sizes} after
                                      * you assign them sizes.
                                      */
-    BlockSparsityPatternBase (const unsigned int n_rows,
-                             const unsigned int n_columns);
+    BlockSparsityPatternBase (const unsigned int n_block_rows,
+                             const unsigned int n_block_columns);
 
                                     /**
                                      * Copy constructor. This
@@ -119,17 +119,18 @@ class BlockSparsityPatternBase : public Subscriptor
     ~BlockSparsityPatternBase ();
     
                                     /**
-                                     * Resize the matrix. This
-                                     * deletes all blocks and replaces
-                                     * them by unitialized ones,
-                                     * i.e. ones for which also the
-                                     * sizes are not yet set. You
-                                     * have to do that by calling the
-                                     * @p{reinit} functions of the
-                                     * blocks themselves. Do not
-                                     * forget to call
-                                     * @p{collect_sizes} after that on
-                                     * this object.
+                                     * Resize the matrix, by setting
+                                     * the number of block rows and
+                                     * columns. This deletes all
+                                     * blocks and replaces them by
+                                     * unitialized ones, i.e. ones
+                                     * for which also the sizes are
+                                     * not yet set. You have to do
+                                     * that by calling the @p{reinit}
+                                     * functions of the blocks
+                                     * themselves. Do not forget to
+                                     * call @p{collect_sizes} after
+                                     * that on this object.
                                      *
                                      * The reason that you have to
                                      * set sizes of the blocks
@@ -143,8 +144,8 @@ class BlockSparsityPatternBase : public Subscriptor
                                      * user call whatever function
                                      * she desires.
                                      */
-    void reinit (const unsigned int n_rows,
-                const unsigned int n_columns);
+    void reinit (const unsigned int n_block_rows,
+                const unsigned int n_block_columns);
     
                                     /**
                                      * Copy operator. For this the
index d273fd4f4785debf68e856616f1c50871f54ac3d..316639cbd27c4a0dca56f9643df17a1a5a0ac00a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2000, 2001, 2002 by the deal authors
+//    Copyright (C) 2000, 2001, 2002, 2003 by the deal authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -27,20 +27,21 @@ BlockSparsityPatternBase<SparsityPatternBase>::BlockSparsityPatternBase ()
 
 template <class SparsityPatternBase>
 BlockSparsityPatternBase<SparsityPatternBase>::
-BlockSparsityPatternBase (const unsigned int r,
-                     const unsigned int c)
+BlockSparsityPatternBase (const unsigned int n_block_rows,
+                          const unsigned int n_block_columns)
                :
                rows (0),
                columns (0)
 {
-  reinit (r,c);
+  reinit (n_block_rows, n_block_columns);
 }
 
 
 
 template <class SparsityPatternBase>
-BlockSparsityPatternBase<SparsityPatternBase>::BlockSparsityPatternBase (
-  const BlockSparsityPatternBase<SparsityPatternBase>& s) :
+BlockSparsityPatternBase<SparsityPatternBase>::
+BlockSparsityPatternBase (const BlockSparsityPatternBase &s)
+                :
                Subscriptor ()
 {
   Assert(s.rows==0, ExcInvalidConstructorCall());
@@ -63,8 +64,9 @@ BlockSparsityPatternBase<SparsityPatternBase>::~BlockSparsityPatternBase ()
 
 template <class SparsityPatternBase>
 void
-BlockSparsityPatternBase<SparsityPatternBase>::reinit (const unsigned int r,
-                                                      const unsigned int c)
+BlockSparsityPatternBase<SparsityPatternBase>::
+reinit (const unsigned int n_block_rows,
+        const unsigned int n_block_columns)
 {
                                   // delete previous content
   for (unsigned int i=0; i<rows; ++i)
@@ -77,8 +79,8 @@ BlockSparsityPatternBase<SparsityPatternBase>::reinit (const unsigned int r,
   sub_objects.clear ();
 
                                   // set new sizes
-  rows = r;
-  columns = c;
+  rows = n_block_rows;
+  columns = n_block_columns;
   sub_objects.reinit (rows, columns);
 
                                   // allocate new objects

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.