]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add a constructor that does reinit at the same time
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Sep 2010 00:29:05 +0000 (00:29 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Sep 2010 00:29:05 +0000 (00:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@22200 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 5f0d55130aba93d01f73ed4121c43903cd4263e1..1fa3fb23fce7d3eb6ba9cd9b1ab16365f486da38 100644 (file)
@@ -481,6 +481,14 @@ class BlockTrianglePrecondition
                                      */
     BlockTrianglePrecondition ();
     
+                                    /**
+                                     * Constructor. This matrix must be
+                                     * block-quadratic, and
+                                     * <tt>n_blocks</tt> is the
+                                     * number of blocks in each direction.
+                                     */
+    BlockTrianglePrecondition (unsigned int n_blocks);
+    
                                     /**
                                      * Constructor. This matrix must be
                                      * block-quadratic. The additional
index 6e81c6bfb333d63cf1599213ac085b24bcca3f4c..f09ec17e83fa2aa5136c359e7aca4ecc1d458709 100644 (file)
@@ -286,6 +286,15 @@ BlockTrianglePrecondition<number>::BlockTrianglePrecondition(
 {}
 
 
+template <typename number>
+BlockTrianglePrecondition<number>::BlockTrianglePrecondition(
+  unsigned int block_rows)
+               :
+               BlockMatrixArray<number> (block_rows, block_rows),
+               backward(false)
+{}
+
+
 template <typename number>
 void
 BlockTrianglePrecondition<number>::initialize(

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.