* 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
~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
* 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
// $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
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());
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)
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