]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
We've forgotten one place.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Apr 2005 21:53:52 +0000 (21:53 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Apr 2005 21:53:52 +0000 (21:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@10560 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 36326979cb3961ecd11b4d03c723c17ec9aae0cb..41d772136532f20db9a010328817b0c22dace601 100644 (file)
@@ -401,8 +401,19 @@ void DataOut<dim>::build_some_patches (Data data)
   
   unsigned int cell_number = 0;
   typename std::vector< ::DataOutBase::Patch<dim> >::iterator patch = this->patches.begin();
-  typename DoFHandler<dim>::cell_iterator cell=first_cell();
-
+  typename DoFHandler<dim>::cell_iterator cell = this->dof->begin();
+
+                                   // count how many cells were skipped at the
+                                   // beginning
+  {
+    const typename DoFHandler<dim>::cell_iterator first_cell = this->first_cell();
+    while (cell != first_cell)
+      {
+        ++cell;
+        ++cell_number;
+      }
+  }
+  
                                   // get first cell in this thread
   for (unsigned int i=0; (i<data.this_thread)&&(cell != this->dofs->end()); ++i)
     {

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.