]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix bug
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 7 Aug 2013 14:21:53 +0000 (14:21 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 7 Aug 2013 14:21:53 +0000 (14:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@30247 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/chunk_sparsity_pattern.cc

index ef64577192aae77e580881e730172775741e8546..021d90b89b8d0831170f179ecec51ba570855828 100644 (file)
@@ -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);

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.