]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix bug in SprsityPattern::block_read and block_write
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Jun 2005 14:42:40 +0000 (14:42 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Jun 2005 14:42:40 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@10935 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index 72214d52c323a7ce758473e40674848584d4f4d6..842183200cfaca97a04efadd415331f345794ca8 100644 (file)
@@ -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<const char*>(&rowstart[0]),
             reinterpret_cast<const char*>(&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());

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.