From: guido Date: Fri, 24 Jun 2005 14:42:40 +0000 (+0000) Subject: fix bug in SprsityPattern::block_read and block_write X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a69e3f1e98ba4ccb7089cb573e60fdfdcdf4aac;p=dealii-svn.git fix bug in SprsityPattern::block_read and block_write git-svn-id: https://svn.dealii.org/trunk@10935 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparsity_pattern.cc b/deal.II/lac/source/sparsity_pattern.cc index 72214d52c3..842183200c 100644 --- a/deal.II/lac/source/sparsity_pattern.cc +++ b/deal.II/lac/source/sparsity_pattern.cc @@ -875,9 +875,11 @@ SparsityPattern::block_write (std::ostream &out) const // bracketed in [...] out << '[' << max_dim << ' ' << rows << ' ' + << cols << ' ' << max_vec_len << ' ' << max_row_length << ' ' - << compressed << "]["; + << compressed << ' ' + << diagonal_optimized << "]["; // then write out real data out.write (reinterpret_cast(&rowstart[0]), reinterpret_cast(&rowstart[max_dim]) @@ -903,7 +905,13 @@ SparsityPattern::block_read (std::istream &in) // first read in simple data in >> c; AssertThrow (c == '[', ExcIO()); - in >> max_dim >> rows >> max_vec_len >> max_row_length >> compressed; + in >> max_dim + >> rows + >> cols + >> max_vec_len + >> max_row_length + >> compressed + >> diagonal_optimized; in >> c; AssertThrow (c == ']', ExcIO());