From ab5b05adad5bd0c313e253453b0580e33c1f688a Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 31 Jul 2008 21:29:13 +0000 Subject: [PATCH] Add a way to find out about the used chunk size. git-svn-id: https://svn.dealii.org/trunk@16478 0785d39b-7218-0410-832d-ea1e28bc413d --- .../lac/include/lac/chunk_sparsity_pattern.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/include/lac/chunk_sparsity_pattern.h b/deal.II/lac/include/lac/chunk_sparsity_pattern.h index 0b26783c77..2bae5c12c0 100644 --- a/deal.II/lac/include/lac/chunk_sparsity_pattern.h +++ b/deal.II/lac/include/lac/chunk_sparsity_pattern.h @@ -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 -- 2.39.5