From 13059f33c1f75a2b0ff5190ab425c8030f88e6c8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 14 Jul 2009 02:34:03 +0000 Subject: [PATCH] Use the correct iterator. git-svn-id: https://svn.dealii.org/trunk@19078 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/tria.h | 11 +++++++---- deal.II/deal.II/source/grid/grid_tools.cc | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) 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) { -- 2.39.5