From: Wolfgang Bangerth Date: Fri, 7 Apr 2000 09:14:34 +0000 (+0000) Subject: Can't believe such a stupid bug persisted until now! Has never anyone tried to access... X-Git-Tag: v8.0.0~20695 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=203de2d632c9c19b5a47dc453c8313dc28ee5d7f;p=dealii.git 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/trunk@2690 0785d39b-7218-0410-832d-ea1e28bc413d --- 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));