]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix the remaining bug by making sure we loop over the correct number of elements...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Oct 2007 23:52:14 +0000 (23:52 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Oct 2007 23:52:14 +0000 (23:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@15298 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index 19727a1ad38f8414f52064ce60b687329dec7b05..3e1a31595b6ef6e66e2ac43c7ecd0082fe088df5 100644 (file)
@@ -4561,7 +4561,7 @@ DataOutReader<dim,spacedim>::read (std::istream &in)
   unsigned int n_vector_data_ranges;
   in >> n_vector_data_ranges;
   vector_data_ranges.resize (n_vector_data_ranges);
-  for (unsigned int i=0; i<n_patches; ++i)
+  for (unsigned int i=0; i<n_vector_data_ranges; ++i)
     {
       in >> vector_data_ranges[i].get<0>()
         >> vector_data_ranges[i].get<1>();

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.