From: bangerth Date: Sun, 30 Jul 2006 21:19:42 +0000 (+0000) Subject: Minor cleanups X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=305a0923e5f4dd5a377a4fdef5dddef3c413810a;p=dealii-svn.git Minor cleanups git-svn-id: https://svn.dealii.org/trunk@13520 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/fe/fe_base.h b/deal.II/deal.II/include/fe/fe_base.h index a217b2f460..89454d79b6 100644 --- a/deal.II/deal.II/include/fe/fe_base.h +++ b/deal.II/deal.II/include/fe/fe_base.h @@ -421,9 +421,9 @@ class FiniteElementData * degree of freedom on the cell. * */ - unsigned int face_to_cell_index(unsigned int face_index, - unsigned int face, - bool orientation = true) const; + unsigned int face_to_cell_index (const unsigned int face_index, + const unsigned int face, + const bool orientation = true) const; /** * @deprecated This function is @@ -603,9 +603,7 @@ face_to_equivalent_cell_index (const unsigned int index) const } -//TODO: This method produces results, that differ from those which -// are returned bz "face_to_cell_index (index, 0)". This has to be -// verified. + template <> inline unsigned int diff --git a/deal.II/deal.II/source/fe/fe_data.cc b/deal.II/deal.II/source/fe/fe_data.cc index 5287f6f951..00c9cba3b5 100644 --- a/deal.II/deal.II/source/fe/fe_data.cc +++ b/deal.II/deal.II/source/fe/fe_data.cc @@ -99,15 +99,15 @@ bool FiniteElementData::operator== (const FiniteElementData &f) const template unsigned int -FiniteElementData::face_to_cell_index( - unsigned int face_index, - unsigned int face, - bool orientation) const +FiniteElementData:: +face_to_cell_index (const unsigned int face_index, + const unsigned int face, + const bool orientation) const { - Assert(face_index < this->dofs_per_face, - ExcIndexRange(face_index, 0, this->dofs_per_face)); - Assert(face < GeometryInfo::faces_per_cell, - ExcIndexRange(face, 0, GeometryInfo::faces_per_cell)); + Assert (face_index < this->dofs_per_face, + ExcIndexRange(face_index, 0, this->dofs_per_face)); + Assert (face < GeometryInfo::faces_per_cell, + ExcIndexRange(face, 0, GeometryInfo::faces_per_cell)); // DoF on a vertex if (face_index < this->first_face_line_index)