From: kanschat Date: Thu, 31 May 2007 15:03:19 +0000 (+0000) Subject: replace dim by structdim X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21df99bdb9c3df67d1a4ae7e722ba31b10be70c3;p=dealii-svn.git replace dim by structdim git-svn-id: https://svn.dealii.org/trunk@14736 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/tria_object.h b/deal.II/deal.II/include/grid/tria_object.h index 5e40775cca..9d58f62067 100644 --- a/deal.II/deal.II/include/grid/tria_object.h +++ b/deal.II/deal.II/include/grid/tria_object.h @@ -26,15 +26,15 @@ namespace internal { /** - * Class template for the dim-dimensional cells constituting - * a Triangulation of dimension dim or lower dimensional + * Class template for the structdim-dimensional cells constituting + * a Triangulation of dimension structdim or lower dimensional * objects of higher dimensions. They are characterized by the * (global) indices of their faces, which are cells of dimension - * dim-1 or vertices if dim=1. + * structdim-1 or vertices if structdim=1. * * @author Guido Kanschat, 2007 */ - template + template class TriaObject { public: @@ -102,7 +102,7 @@ namespace internal /** * Global indices of the two end points. */ - int faces[GeometryInfo::faces_per_cell]; + int faces[GeometryInfo::faces_per_cell]; }; /// Legacy typedef @@ -116,30 +116,30 @@ namespace internal //----------------------------------------------------------------------// - template + template inline - TriaObject::TriaObject () + TriaObject::TriaObject () { - for (unsigned int i=0;i::faces_per_cell;++i) + for (unsigned int i=0;i::faces_per_cell;++i) faces[i] = -1; } - template + template inline - TriaObject::TriaObject (const int i0, const int i1) + TriaObject::TriaObject (const int i0, const int i1) { - Assert (dim==1, ExcImpossibleInDim(dim)); + Assert (structdim==1, ExcImpossibleInDim(structdim)); faces[0] = i0; faces[1] = i1; } - template + template inline - TriaObject::TriaObject (const int i0, const int i1, const int i2, const int i3) + TriaObject::TriaObject (const int i0, const int i1, const int i2, const int i3) { - Assert (dim==2, ExcImpossibleInDim(dim)); + Assert (structdim==2, ExcImpossibleInDim(structdim)); faces[0] = i0; faces[1] = i1; faces[2] = i2; @@ -147,12 +147,12 @@ namespace internal } - template + template inline - TriaObject::TriaObject (const int i0, const int i1, const int i2, - const int i3, const int i4, const int i5) + TriaObject::TriaObject (const int i0, const int i1, const int i2, + const int i3, const int i4, const int i5) { - Assert (dim==3, ExcImpossibleInDim(dim)); + Assert (structdim==3, ExcImpossibleInDim(structdim)); faces[0] = i0; faces[1] = i1; faces[2] = i2; @@ -162,34 +162,34 @@ namespace internal } - template + template inline - int TriaObject::face (const unsigned int i) const + int TriaObject::face (const unsigned int i) const { - Assert (i::faces_per_cell, - ExcIndexRange(i,0,GeometryInfo::faces_per_cell)); + Assert (i::faces_per_cell, + ExcIndexRange(i,0,GeometryInfo::faces_per_cell)); return faces[i]; } - template + template inline - void TriaObject::set_face (const unsigned int i, const int index) + void TriaObject::set_face (const unsigned int i, const int index) { - Assert (i::faces_per_cell, - ExcIndexRange(i,0,GeometryInfo::faces_per_cell)); + Assert (i::faces_per_cell, + ExcIndexRange(i,0,GeometryInfo::faces_per_cell)); faces[i] = index; } - template + template inline unsigned int - TriaObject::memory_consumption () + TriaObject::memory_consumption () { - return sizeof(TriaObject); + return sizeof(TriaObject); }