From: Ralf Hartmann Date: Mon, 29 May 2000 15:49:44 +0000 (+0000) Subject: fix a sneaky bug in MT. X-Git-Tag: v8.0.0~20436 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a9777287d1563a3b158977f1c9deb5966b74687;p=dealii.git fix a sneaky bug in MT. git-svn-id: https://svn.dealii.org/trunk@2972 0785d39b-7218-0410-832d-ea1e28bc413d --- 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); + } }; }