From a8fa1c6cadfe8e90a7ee28001d519416346544cc Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 15 Jul 2009 04:23:01 +0000 Subject: [PATCH] Fix an obvious bug in recursively_set_material_id. git-svn-id: https://svn.dealii.org/trunk@19083 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/tria_accessor.cc | 4 ++-- deal.II/doc/news/changes.h | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/grid/tria_accessor.cc b/deal.II/deal.II/source/grid/tria_accessor.cc index e732e2686c..8202baa93c 100644 --- a/deal.II/deal.II/source/grid/tria_accessor.cc +++ b/deal.II/deal.II/source/grid/tria_accessor.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1207,7 +1207,7 @@ void CellAccessor::recursively_set_material_id (const unsigned ch set_material_id (mat_id); if (this->has_children()) - for (unsigned int c=0; c<2; ++c) + for (unsigned int c=0; cn_children(); ++c) this->child(c)->recursively_set_material_id (mat_id); } diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index 3ff6913670..b0fb3efc9d 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -247,6 +247,16 @@ inconvenience this causes.

deal.II

    +
  1. +

    + Fixed: The CellAccessor::recursively_set_material_id function did not + set the material id for all children, but only for the first two, which + is obviously a bug. This should now be fixed. +
    + (WB 2009/07/14) +

    +
  2. +
  3. Fixed: The GridIn class sometimes had problems with input files that had -- 2.39.5