]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make enter function in preconditioner accessible
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 29 Mar 2005 23:57:59 +0000 (23:57 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 29 Mar 2005 23:57:59 +0000 (23:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@10319 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e92e32000b791478aaa099e882592a9b4b509b22..25e2e0e4f0cdac9dcfba542ed2a2801d70ad46da 100644 (file)
@@ -424,7 +424,20 @@ class BlockTrianglePrecondition
     BlockTrianglePrecondition(unsigned int block_rows,
                              VectorMemory<Vector<number> >& mem,
                              bool backward = false);
-
+                                    /**
+                                     * Enter a block. This calls
+                                     * BlockMatrixArray::enter(). Remember
+                                     * that the diagonal blocks
+                                     * should actually be inverse
+                                     * matrices or preconditioners.
+                                     */
+    template <class MATRIX>
+    void enter (const MATRIX      &matrix,
+               const unsigned int row,
+               const unsigned int col,
+               const double       prefix = 1.,
+               const bool         transpose = false);
+    
                                     /**
                                      * Resize preconditioner to a new
                                      * size and clear all blocks.
@@ -626,6 +639,18 @@ BlockMatrixArray<number>::print_latex (STREAM& out) const
   out << "\\end{array}" << std::endl;
 }
 
+template <typename number>
+template <class MATRIX>
+inline
+void
+BlockTrianglePrecondition<number>::enter (const MATRIX& matrix,
+                                         unsigned row, unsigned int col,
+                                         double prefix, bool transpose)
+{
+  BlockMatrixArray<number>::enter(matrix, row, col, prefix, transpose);
+}
+
+
 
 ///@endif
 

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.