]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Oops
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Apr 2003 15:01:01 +0000 (15:01 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Apr 2003 15:01:01 +0000 (15:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@7401 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix_ez.templates.h

index 89fff095417b003ee3f01ad7afb976814f240fac..c1a6dbfc99d0c8534bdcf7cd3574feea83ef8449 100644 (file)
@@ -491,13 +491,13 @@ SparseMatrixEZ<number>::block_read (std::istream &in)
   CHECKFOR(in,'[',c);
 
                                    // then read data
-  in.read(reinterpret_cast<char*>(&row_info[i]),
+  in.read(reinterpret_cast<char*>(&row_info[0]),
          sizeof(RowInfo) * row_info.size());
   
   CHECKFOR(in,']',c);
   CHECKFOR(in,'[',c);
            
-  in.read(reinterpret_cast<char*>(&data[i]),
+  in.read(reinterpret_cast<char*>(&data[0]),
          sizeof(Entry) * data.size());
   
   CHECKFOR(in,']',c);

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.