From 8c11e0bcae798063860a1e4096071e58ad2dcd26 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 7 Apr 2000 09:14:46 +0000 Subject: [PATCH] Can't believe such a stupid bug persisted until now! Has never anyone tried to access children 6 and 7 of a hex? git-svn-id: https://svn.dealii.org/branches/Branch-3-0@2691 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/tria_accessor.templates.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deal.II/deal.II/include/grid/tria_accessor.templates.h b/deal.II/deal.II/include/grid/tria_accessor.templates.h index c6280835c2..8be1815786 100644 --- a/deal.II/deal.II/include/grid/tria_accessor.templates.h +++ b/deal.II/deal.II/include/grid/tria_accessor.templates.h @@ -516,7 +516,8 @@ TriaObjectAccessor<3,dim>::line_index (unsigned int i) const { template inline unsigned int -TriaObjectAccessor<3,dim>::quad_index (unsigned int i) const { +TriaObjectAccessor<3,dim>::quad_index (unsigned int i) const +{ Assert (i<6, ExcIndexRange(i,0,6)); return tria->levels[present_level]->hexes.hexes[present_index].quad(i); @@ -526,8 +527,9 @@ TriaObjectAccessor<3,dim>::quad_index (unsigned int i) const { template inline TriaIterator > -TriaObjectAccessor<3,dim>::child (const unsigned int i) const { - Assert (i<6, ExcIndexRange(i,0,6)); +TriaObjectAccessor<3,dim>::child (const unsigned int i) const +{ + Assert (i<8, ExcIndexRange(i,0,8)); TriaIterator > q (tria, present_level+1, child_index (i)); -- 2.39.5