]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add invalid_entry. Add ChunkSparseMatrix as a friend.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 2 Aug 2008 01:22:12 +0000 (01:22 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 2 Aug 2008 01:22:12 +0000 (01:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@16483 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/chunk_sparsity_pattern.h

index 2bae5c12c02cb1d5e4b56407ca0065236a378f09..407c7d82c526405f112ff412cc4703a8b1c796ca 100644 (file)
@@ -27,6 +27,9 @@
 DEAL_II_NAMESPACE_OPEN
 
 
+template <typename> class ChunkSparseMatrix;
+
+
 /*! @addtogroup Sparsity
  *@{
  */
@@ -44,6 +47,33 @@ DEAL_II_NAMESPACE_OPEN
 class ChunkSparsityPattern : public Subscriptor
 {
   public:
+    
+                                    /**
+                                     * Define a value which is used
+                                     * to indicate that a certain
+                                     * value in the #colnums array
+                                     * is unused, i.e. does not
+                                     * represent a certain column
+                                     * number index.
+                                     *
+                                     * Indices with this invalid
+                                     * value are used to insert new
+                                     * entries to the sparsity
+                                     * pattern using the add() member
+                                     * function, and are removed when
+                                     * calling compress().
+                                     *
+                                     * You should not assume that the
+                                     * variable declared here has a
+                                     * certain value. The
+                                     * initialization is given here
+                                     * only to enable the compiler to
+                                     * perform some optimizations,
+                                     * but the actual value of the
+                                     * variable may change over time.
+                                     */
+    static const unsigned int invalid_entry = SparsityPattern::invalid_entry;
+
                                     /**
                                      * Initialize the matrix empty,
                                      * that is with no memory
@@ -816,6 +846,12 @@ class ChunkSparsityPattern : public Subscriptor
                                      * chunk_size by chunk_size.
                                      */
     SparsityPattern sparsity_pattern;
+
+                                    /**
+                                     * Make all the chunk sparse matrix kinds
+                                     * friends.
+                                     */
+    template <typename> friend class ChunkSparseMatrix;
 };
 
 

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.