From: wolf Date: Thu, 17 May 2001 11:34:49 +0000 (+0000) Subject: Make variables const and thus Intel C++ compiler more happy. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f576fa5f126e9fb3e5f1ceb4db4178d48566cf;p=dealii-svn.git Make variables const and thus Intel C++ compiler more happy. git-svn-id: https://svn.dealii.org/trunk@4628 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 0625d97883..8b937561a1 100644 --- a/deal.II/deal.II/include/fe/fe_base.h +++ b/deal.II/deal.II/include/fe/fe_base.h @@ -1047,8 +1047,8 @@ FiniteElementData::n_components () const template inline unsigned int -FiniteElementBase::component_to_system_index (unsigned int component, - unsigned int component_index) const +FiniteElementBase::component_to_system_index (const unsigned int component, + const unsigned int component_index) const { Assert(component::component_to_system_index (unsigned int component, template inline std::pair -FiniteElementBase::system_to_component_index (unsigned int index) const +FiniteElementBase::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::system_to_component_index (unsigned int index) const template inline unsigned int -FiniteElementBase::face_component_to_system_index (unsigned int component, - unsigned int component_index) const +FiniteElementBase::face_component_to_system_index (const unsigned int component, + const unsigned int component_index) const { Assert(component::face_component_to_system_index (unsigned int component, template inline std::pair -FiniteElementBase::face_system_to_component_index (unsigned int index) const +FiniteElementBase::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())); 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 2eac941ff8..1affbe1e4a 100644 --- a/deal.II/deal.II/include/grid/tria_accessor.templates.h +++ b/deal.II/deal.II/include/grid/tria_accessor.templates.h @@ -173,7 +173,7 @@ TriaObjectAccessor<1,dim>::child (const unsigned int i) const template 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 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 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 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 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 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::quad (const unsigned int i) const template inline unsigned int -TriaObjectAccessor::line_index (unsigned int i) const +TriaObjectAccessor::line_index (const unsigned int i) const { Assert (i < GeometryInfo::lines_per_cell, ExcIndexRange(i,0,GeometryInfo::lines_per_cell)); @@ -860,7 +860,7 @@ TriaObjectAccessor::line_index (unsigned int i) const template inline unsigned int -TriaObjectAccessor::quad_index (unsigned int i) const +TriaObjectAccessor::quad_index (const unsigned int i) const { Assert (i < GeometryInfo::quads_per_cell, ExcIndexRange(i,0,GeometryInfo::quads_per_cell)); @@ -891,7 +891,7 @@ TriaObjectAccessor::child (const unsigned int i) const template inline -int TriaObjectAccessor::child_index (unsigned int i) const +int TriaObjectAccessor::child_index (const unsigned int i) const { Assert (i < GeometryInfo::children_per_cell, ExcIndexRange(i,0,GeometryInfo::children_per_cell)); diff --git a/deal.II/deal.II/source/dofs/dof_renumbering.cc b/deal.II/deal.II/source/dofs/dof_renumbering.cc index d7e051001e..574339e25d 100644 --- a/deal.II/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/deal.II/source/dofs/dof_renumbering.cc @@ -620,7 +620,7 @@ DoFRenumbering::cell_wise_dg (DoFHandler& dof, template void DoFRenumbering::cell_wise_dg (MGDoFHandler& dof, - unsigned int level, + const unsigned int level, const typename std::vector::cell_iterator>& cells) { Assert(cells.size() == dof.get_tria().n_cells(level), @@ -783,7 +783,7 @@ void DoFRenumbering::cell_wise_dg (DoFHandler&, template void DoFRenumbering::cell_wise_dg (MGDoFHandler&, - unsigned int, + const unsigned int, const std::vector::cell_iterator>&); template @@ -792,7 +792,7 @@ void DoFRenumbering::downstream_dg (DoFHandler&, template void DoFRenumbering::downstream_dg (MGDoFHandler&, - unsigned int, + const unsigned int, const Point&); template