]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Minor cleanups
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 30 Jul 2006 21:19:42 +0000 (21:19 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 30 Jul 2006 21:19:42 +0000 (21:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@13520 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_base.h
deal.II/deal.II/source/fe/fe_data.cc

index a217b2f4609ec0824ef38b03ad6ae24862bddcc2..89454d79b63576ef92d53dbf86d2005967b8a7b1 100644 (file)
@@ -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
index 5287f6f9512bcd39eb663ab6fe649fbdfea74ed2..00c9cba3b58d683d438e8504cb24ec0a2ce5c44c 100644 (file)
@@ -99,15 +99,15 @@ bool FiniteElementData<dim>::operator== (const FiniteElementData<dim> &f) const
 
 template<int dim>
 unsigned int
-FiniteElementData<dim>::face_to_cell_index(
-  unsigned int face_index,
-  unsigned int face,
-  bool orientation) const
+FiniteElementData<dim>::
+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<dim>::faces_per_cell,
-        ExcIndexRange(face, 0, GeometryInfo<dim>::faces_per_cell));
+  Assert (face_index < this->dofs_per_face,
+         ExcIndexRange(face_index, 0, this->dofs_per_face));
+  Assert (face < GeometryInfo<dim>::faces_per_cell,
+         ExcIndexRange(face, 0, GeometryInfo<dim>::faces_per_cell));
   
                                   // DoF on a vertex
   if (face_index < this->first_face_line_index)

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.