]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a way to find out about the used chunk size.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Jul 2008 21:29:13 +0000 (21:29 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Jul 2008 21:29:13 +0000 (21:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@16478 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 0b26783c779b7add9a2d815e01f844602ce318e9..2bae5c12c02cb1d5e4b56407ca0065236a378f09 100644 (file)
@@ -39,7 +39,7 @@ DEAL_II_NAMESPACE_OPEN
  *
  * It uses the compressed row storage (CSR) format to store data.
  *
- * @author Wolfgang Bangerth, Guido Kanschat and others
+ * @author Wolfgang Bangerth, 2008
  */
 class ChunkSparsityPattern : public Subscriptor
 {
@@ -463,6 +463,13 @@ class ChunkSparsityPattern : public Subscriptor
                                      */
     bool empty () const;
 
+                                    /**
+                                     * Return the chunk size given as
+                                     * argument when constructing this
+                                     * object.
+                                     */
+    unsigned int get_chunk_size () const;
+    
                                     /**
                                      * Return the maximum number of entries per
                                      * row. Before compression, this equals the
@@ -834,6 +841,16 @@ ChunkSparsityPattern::n_cols () const
 }
 
 
+
+inline
+unsigned int
+ChunkSparsityPattern::get_chunk_size () const
+{
+  return chunk_size;
+}
+
+
+
 inline
 bool
 ChunkSparsityPattern::is_compressed () const

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.