From 79780df9894dde90a8ad41bc6461df5c60fadc9b Mon Sep 17 00:00:00 2001 From: hartmann Date: Mon, 29 May 2000 15:49:44 +0000 Subject: [PATCH] fix a sneaky bug in MT. git-svn-id: https://svn.dealii.org/trunk@2972 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_out.cc | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_out.cc b/deal.II/deal.II/source/numerics/data_out.cc index 5908375889..aef1a22890 100644 --- a/deal.II/deal.II/source/numerics/data_out.cc +++ b/deal.II/deal.II/source/numerics/data_out.cc @@ -211,9 +211,13 @@ void DataOut::build_some_patches (Data data) DoFHandler::cell_iterator cell=first_cell(); // get first cell in this thread - for (unsigned int i=0;iend()); ++i) + { + ++patch; + ++cell_number; + cell=next_cell(cell); + } + // now loop over all cells and // actually create the patches for (;cell != dofs->end();) @@ -260,9 +264,13 @@ void DataOut::build_some_patches (Data data) }; }; // next cell (patch) in this thread - for (unsigned int i=0;((iend())); - ++i,++patch,++cell_number,cell=next_cell(cell)); - + for (unsigned int i=0; + (iend()); ++i) + { + ++patch; + ++cell_number; + cell=next_cell(cell); + } }; } -- 2.39.5