]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix an obvious bug in recursively_set_material_id.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 15 Jul 2009 04:23:01 +0000 (04:23 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 15 Jul 2009 04:23:01 +0000 (04:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@19083 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria_accessor.cc
deal.II/doc/news/changes.h

index e732e2686cd3d83bd11acb8119e54488188abafb..8202baa93cdd30129659013fdeaa0da188f882e5 100644 (file)
@@ -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<dim, spacedim>::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; c<this->n_children(); ++c)
       this->child(c)->recursively_set_material_id (mat_id);
 }
 
index 3ff6913670d1a16dd92893692b64771fe22aa79a..b0fb3efc9d96d49a772297642231ccf90dcad775 100644 (file)
@@ -247,6 +247,16 @@ inconvenience this causes.
 <h3>deal.II</h3>
 
 <ol>
+  <li>
+  <p>
+  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.
+  <br>
+  (WB 2009/07/14)
+  </p>
+  </li>
+
   <li>
   <p>
   Fixed: The GridIn class sometimes had problems with input files that had

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.