From: Martin Kronbichler Date: Wed, 7 Aug 2013 14:21:53 +0000 (+0000) Subject: Fix bug X-Git-Tag: v8.1.0~1125 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4df175f87663e380512be4d4739b411674345e26;p=dealii.git Fix bug git-svn-id: https://svn.dealii.org/trunk@30247 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/chunk_sparsity_pattern.cc b/deal.II/source/lac/chunk_sparsity_pattern.cc index ef64577192..021d90b89b 100644 --- a/deal.II/source/lac/chunk_sparsity_pattern.cc +++ b/deal.II/source/lac/chunk_sparsity_pattern.cc @@ -296,6 +296,9 @@ ChunkSparsityPattern::copy_from (const SparsityType &csp, const size_type chunk_size) { Assert (chunk_size > 0, ExcInvalidNumber (chunk_size)); + this->chunk_size = chunk_size; + rows = csp.n_rows(); + cols = csp.n_cols(); // simple case: just use the other sparsity pattern if (chunk_size == 1) @@ -307,9 +310,6 @@ ChunkSparsityPattern::copy_from (const SparsityType &csp, // create a temporary compressed sparsity pattern that collects all entries // from the input sparsity pattern and then initialize the underlying small // sparsity pattern - this->chunk_size = chunk_size; - rows = csp.n_rows(); - cols = csp.n_cols(); const size_type m_chunks = (csp.n_rows()+chunk_size-1) / chunk_size, n_chunks = (csp.n_cols()+chunk_size-1) / chunk_size; CompressedSimpleSparsityPattern temporary_sp(m_chunks, n_chunks);