]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make variables const and thus Intel C++ compiler more happy.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 May 2001 11:34:49 +0000 (11:34 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 May 2001 11:34:49 +0000 (11:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@4628 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_base.h
deal.II/deal.II/include/grid/tria_accessor.templates.h
deal.II/deal.II/source/dofs/dof_renumbering.cc

index 0625d97883ec4b4e8b5e29375a8974f567661b65..8b937561a183e14e11a5ed75a4362a879f4b4a02 100644 (file)
@@ -1047,8 +1047,8 @@ FiniteElementData<dim>::n_components () const
 template <int dim>
 inline
 unsigned int
-FiniteElementBase<dim>::component_to_system_index (unsigned int component,
-                                                  unsigned int component_index) const
+FiniteElementBase<dim>::component_to_system_index (const unsigned int component,
+                                                  const unsigned int component_index) const
 {
   Assert(component<n_components(),
         ExcIndexRange(component, 0, n_components()));
@@ -1062,7 +1062,7 @@ FiniteElementBase<dim>::component_to_system_index (unsigned int component,
 template <int dim>  
 inline
 std::pair<unsigned int,unsigned int>
-FiniteElementBase<dim>::system_to_component_index (unsigned int index) const
+FiniteElementBase<dim>::system_to_component_index (const unsigned int index) const
 {
   Assert(index < system_to_component_table.size(),
         ExcIndexRange(index, 0, system_to_component_table.size()));
@@ -1073,8 +1073,8 @@ FiniteElementBase<dim>::system_to_component_index (unsigned int index) const
 template <int dim>
 inline
 unsigned int
-FiniteElementBase<dim>::face_component_to_system_index (unsigned int component,
-                                                       unsigned int component_index) const
+FiniteElementBase<dim>::face_component_to_system_index (const unsigned int component,
+                                                       const unsigned int component_index) const
 {
   Assert(component<n_components(),
         ExcIndexRange(component, 0, n_components()));
@@ -1088,7 +1088,7 @@ FiniteElementBase<dim>::face_component_to_system_index (unsigned int component,
 template <int dim>  
 inline
 std::pair<unsigned int,unsigned int>
-FiniteElementBase<dim>::face_system_to_component_index (unsigned int index) const
+FiniteElementBase<dim>::face_system_to_component_index (const unsigned int index) const
 {
   Assert(index < face_system_to_component_table.size(),
         ExcIndexRange(index, 0, face_system_to_component_table.size()));
index 2eac941ff8fa08831e4574db6468f7f7d125f213..1affbe1e4acd21bfdcdad5e3f08cce41f8c09560 100644 (file)
@@ -173,7 +173,7 @@ TriaObjectAccessor<1,dim>::child (const unsigned int i) const
 template <int dim>
 inline
 int
-TriaObjectAccessor<1,dim>::child_index (unsigned int i) const
+TriaObjectAccessor<1,dim>::child_index (unsigned const int i) const
 {
   Assert (i<2, ExcIndexRange(i,0,2));
   return tria->levels[present_level]->lines.children[present_index]+i;
@@ -328,7 +328,7 @@ TriaObjectAccessor<2,dim>::line (const unsigned int i) const
 template <int dim>
 inline
 unsigned int
-TriaObjectAccessor<2,dim>::line_index (unsigned int i) const
+TriaObjectAccessor<2,dim>::line_index (const unsigned int i) const
 {
   Assert (i<4, ExcIndexRange(i,0,4));
 
@@ -357,7 +357,7 @@ TriaObjectAccessor<2,dim>::child (const unsigned int i) const
 
 template <int dim>
 inline
-int TriaObjectAccessor<2,dim>::child_index (unsigned int i) const
+int TriaObjectAccessor<2,dim>::child_index (const unsigned int i) const
 {
   Assert (i<4, ExcIndexRange(i,0,4));
   return tria->levels[present_level]->quads.children[present_index]+i;
@@ -553,7 +553,7 @@ TriaObjectAccessor<3,dim>::quad (const unsigned int i) const
 template <int dim>
 inline
 unsigned int
-TriaObjectAccessor<3,dim>::line_index (unsigned int i) const
+TriaObjectAccessor<3,dim>::line_index (const unsigned int i) const
 {
   Assert (i<12, ExcIndexRange(i,0,12));
 
@@ -583,7 +583,7 @@ TriaObjectAccessor<3,dim>::line_index (unsigned int i) const
 template <int dim>
 inline
 unsigned int
-TriaObjectAccessor<3,dim>::quad_index (unsigned int i) const
+TriaObjectAccessor<3,dim>::quad_index (const unsigned int i) const
 {
   Assert (i<6, ExcIndexRange(i,0,6));
 
@@ -611,7 +611,7 @@ TriaObjectAccessor<3,dim>::child (const unsigned int i) const
 
 template <int dim>
 inline
-int TriaObjectAccessor<3,dim>::child_index (unsigned int i) const
+int TriaObjectAccessor<3,dim>::child_index (const unsigned int i) const
 {
   Assert (i<8, ExcIndexRange(i,0,8));
   return tria->levels[present_level]->hexes.children[present_index]+i;
@@ -820,7 +820,7 @@ TriaObjectAccessor<celldim,dim>::quad (const unsigned int i) const
 template<int celldim, int dim>
 inline
 unsigned int
-TriaObjectAccessor<celldim,dim>::line_index (unsigned int i) const
+TriaObjectAccessor<celldim,dim>::line_index (const unsigned int i) const
 {
   Assert (i < GeometryInfo<celldim>::lines_per_cell,
          ExcIndexRange(i,0,GeometryInfo<celldim>::lines_per_cell));
@@ -860,7 +860,7 @@ TriaObjectAccessor<celldim,dim>::line_index (unsigned int i) const
 template<int celldim, int dim>
 inline
 unsigned int
-TriaObjectAccessor<celldim,dim>::quad_index (unsigned int i) const
+TriaObjectAccessor<celldim,dim>::quad_index (const unsigned int i) const
 {
   Assert (i < GeometryInfo<celldim>::quads_per_cell,
          ExcIndexRange(i,0,GeometryInfo<celldim>::quads_per_cell));
@@ -891,7 +891,7 @@ TriaObjectAccessor<celldim,dim>::child (const unsigned int i) const
 
 template<int celldim, int dim>
 inline
-int TriaObjectAccessor<celldim,dim>::child_index (unsigned int i) const
+int TriaObjectAccessor<celldim,dim>::child_index (const unsigned int i) const
 {
   Assert (i < GeometryInfo<celldim>::children_per_cell,
          ExcIndexRange(i,0,GeometryInfo<celldim>::children_per_cell));
index d7e051001e96ef648576d1d2d6ce7afbdf30bb46..574339e25da7b4690c38ccdf1841720fca878273 100644 (file)
@@ -620,7 +620,7 @@ DoFRenumbering::cell_wise_dg (DoFHandler<dim>& dof,
 template <int dim>
 void
 DoFRenumbering::cell_wise_dg (MGDoFHandler<dim>& dof,
-                             unsigned int level,
+                             const unsigned int level,
                              const typename std::vector<typename MGDoFHandler<dim>::cell_iterator>& cells)
 {
   Assert(cells.size() == dof.get_tria().n_cells(level),
@@ -783,7 +783,7 @@ void DoFRenumbering::cell_wise_dg (DoFHandler<deal_II_dimension>&,
 
 template
 void DoFRenumbering::cell_wise_dg (MGDoFHandler<deal_II_dimension>&,
-                                  unsigned int,
+                                  const unsigned int,
                                   const std::vector<DoFHandler<deal_II_dimension>::cell_iterator>&);
 
 template
@@ -792,7 +792,7 @@ void DoFRenumbering::downstream_dg (DoFHandler<deal_II_dimension>&,
 
 template
 void DoFRenumbering::downstream_dg (MGDoFHandler<deal_II_dimension>&,
-                                   unsigned int,
+                                   const unsigned int,
                                    const Point<deal_II_dimension>&);
 
 template

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.