]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug where we don't keep track of counters properly.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 14 Oct 2007 23:00:11 +0000 (23:00 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 14 Oct 2007 23:00:11 +0000 (23:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@15316 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out.cc

index a44de1daaed98d18c209818dabfc5bbee51a021b..0ccdee4aaa6fe0facf18ac26bb4598a235c54142 100644 (file)
@@ -564,8 +564,11 @@ DataOut_DoFData<DH,patch_dim,patch_space_dim>::get_vector_data_ranges () const
          ranges.push_back (range);
 
                                           // increase the 'component' counter
-                                          // by the appropriate amount
+                                          // by the appropriate amount, same
+                                          // for 'i', since we have already
+                                          // dealt with all these components
          output_component += patch_space_dim-1;
+         i += patch_space_dim-1;
        }
 
                                   // note that we do not have to traverse the

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.