<h3>lac</h3>
<ol>
+ <li> <p>
+ Fixed: The <code>BlockSparseMatrix</code> class had no local
+ typedef <code>value_type</code> like all other classes, which
+ made it a little awkward to use in some places. This has now
+ been fixed.
+ <br>
+ (WB, 2005/03/03)
+ </p>
+
<li> <p>
Fixed: The <code>PETScWrappers::MatrixBase</code> class
documented that adding or setting a value that hasn't been in
class BlockMatrixArray : public Subscriptor
{
public:
+ /**
+ * Inherit the value_type from
+ * the class over which we build
+ * the array.
+ */
+ typedef typename MATRIX::value_type value_type;
+
/**
* Constructor fixing the
* dimensions.
/**
* Add a block matrix entry.
*/
- void enter (const MATRIX& matrix,
- unsigned row,
- unsigned int col,
- double prefix = 1.,
- bool transpose = false);
+ void enter (const MATRIX &matrix,
+ const unsigned int row,
+ const unsigned int col,
+ const double prefix = 1.,
+ const bool transpose = false);
/**
* Delete all entries, i.e. reset
--- /dev/null
+//---------------------------- block_matrix_array_01.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2005 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- block_matrix_array_01.cc ---------------------------
+
+
+// the class BlockMatrixArray had no local type value_type that is
+// needed in some places. in particular, this is needed for
+// PreconditionBlockSSOR
+
+#include <base/logstream.h>
+#include <lac/block_matrix_array.h>
+#include <lac/sparse_matrix.h>
+#include <lac/precondition_block.h>
+#include <iostream>
+#include <fstream>
+
+
+int main ()
+{
+ std::ofstream logfile("block_matrix_array_01.output");
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+
+ BlockMatrixArray<SparseMatrix<double> >::value_type i = 1.0;
+ deallog << i << std::endl;
+
+ // the following did not compile
+ // right away
+ PreconditionBlockSSOR<BlockMatrixArray<SparseMatrix<double> > > p;
+
+ return 0;
+}