From: Wolfgang Bangerth Date: Tue, 14 Jul 2009 02:34:03 +0000 (+0000) Subject: Use the correct iterator. X-Git-Tag: v8.0.0~7482 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13059f33c1f75a2b0ff5190ab425c8030f88e6c8;p=dealii.git Use the correct iterator. git-svn-id: https://svn.dealii.org/trunk@19078 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/tria.h b/deal.II/deal.II/include/grid/tria.h index cc3ce77b17..d9a63b79f5 100644 --- a/deal.II/deal.II/include/grid/tria.h +++ b/deal.II/deal.II/include/grid/tria.h @@ -1373,8 +1373,9 @@ class Triangulation : public Subscriptor * * Objects of this kind are * thrown by the - * create_triangulation() - * function, and they can be + * create_triangulation() and + * execute_coarsening_and_refinement() + * functions, and they can be * caught in user code if this * condition is to be ignored. * @@ -1406,9 +1407,11 @@ class Triangulation : public Subscriptor /** * A list of those cells * among the coarse mesh - * cells that are deformed. + * cells that are deformed or + * whose children are + * deformed. */ - std::list::active_cell_iterator> + std::list::cell_iterator> distorted_cells; }; diff --git a/deal.II/deal.II/source/grid/grid_tools.cc b/deal.II/deal.II/source/grid/grid_tools.cc index f93bfedac4..f7d4510b3e 100644 --- a/deal.II/deal.II/source/grid/grid_tools.cc +++ b/deal.II/deal.II/source/grid/grid_tools.cc @@ -1338,7 +1338,7 @@ fix_up_distorted_child_cells (const typename Triangulation::Distor // loop over all cells that we have // to fix up - for (typename std::list::active_cell_iterator>::const_iterator + for (typename std::list::cell_iterator>::const_iterator cell_ptr = distorted_cells.distorted_cells.begin(); cell_ptr != distorted_cells.distorted_cells.end(); ++cell_ptr) {