From ce0648ea6ac821fc6fb6094336c10415d2e6d2b6 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 21 Apr 2005 21:53:52 +0000 Subject: [PATCH] We've forgotten one place. git-svn-id: https://svn.dealii.org/trunk@10560 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_out.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_out.cc b/deal.II/deal.II/source/numerics/data_out.cc index 36326979cb..41d7721365 100644 --- a/deal.II/deal.II/source/numerics/data_out.cc +++ b/deal.II/deal.II/source/numerics/data_out.cc @@ -401,8 +401,19 @@ void DataOut::build_some_patches (Data data) unsigned int cell_number = 0; typename std::vector< ::DataOutBase::Patch >::iterator patch = this->patches.begin(); - typename DoFHandler::cell_iterator cell=first_cell(); - + typename DoFHandler::cell_iterator cell = this->dof->begin(); + + // count how many cells were skipped at the + // beginning + { + const typename DoFHandler::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; (idofs->end()); ++i) { -- 2.39.5