From ea8cb58420408840dcd0c23c66adaac9d58fe55c Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 17 May 2001 11:54:42 +0000 Subject: [PATCH] Make variables const and thus Intel C++ compiler more happy. git-svn-id: https://svn.dealii.org/trunk@4629 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe.h | 4 ++-- deal.II/deal.II/include/fe/fe_dgq.h | 4 ++-- deal.II/deal.II/include/fe/fe_q.h | 4 ++-- deal.II/deal.II/include/fe/fe_system.h | 6 +++--- deal.II/deal.II/source/fe/fe.cc | 2 +- deal.II/deal.II/source/fe/fe_q.cc | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/deal.II/deal.II/include/fe/fe.h b/deal.II/deal.II/include/fe/fe.h index 77545b80e8..dd0a4d48bc 100644 --- a/deal.II/deal.II/include/fe/fe.h +++ b/deal.II/deal.II/include/fe/fe.h @@ -125,14 +125,14 @@ class FiniteElement : public FiniteElementBase * update only. * @see{FEValuesBase} */ - virtual UpdateFlags update_once (UpdateFlags flags) const = 0; + virtual UpdateFlags update_once (const UpdateFlags flags) const = 0; /** * Compute flags for update on * each cell. * @see{FEValuesBase} */ - virtual UpdateFlags update_each (UpdateFlags flags) const = 0; + virtual UpdateFlags update_each (const UpdateFlags flags) const = 0; /** * @p{clone} function instead of diff --git a/deal.II/deal.II/include/fe/fe_dgq.h b/deal.II/deal.II/include/fe/fe_dgq.h index 86e8a5425f..b83abf7608 100644 --- a/deal.II/deal.II/include/fe/fe_dgq.h +++ b/deal.II/deal.II/include/fe/fe_dgq.h @@ -227,12 +227,12 @@ class FE_DGQ : public FiniteElement /** * Compute flags for initial update only. */ - virtual UpdateFlags update_once (UpdateFlags flags) const; + virtual UpdateFlags update_once (const UpdateFlags flags) const; /** * Compute flags for update on each cell. */ - virtual UpdateFlags update_each (UpdateFlags flags) const; + virtual UpdateFlags update_each (const UpdateFlags flags) const; /** * Compute renumbering for rotation diff --git a/deal.II/deal.II/include/fe/fe_q.h b/deal.II/deal.II/include/fe/fe_q.h index 67b096c783..a82b23f5da 100644 --- a/deal.II/deal.II/include/fe/fe_q.h +++ b/deal.II/deal.II/include/fe/fe_q.h @@ -539,13 +539,13 @@ class FE_Q : public FiniteElement * Compute flags for initial * update only. */ - virtual UpdateFlags update_once (UpdateFlags flags) const; + virtual UpdateFlags update_once (const UpdateFlags flags) const; /** * Compute flags for update on * each cell. */ - virtual UpdateFlags update_each (UpdateFlags flags) const; + virtual UpdateFlags update_each (const UpdateFlags flags) const; /** * Degree of the polynomials. diff --git a/deal.II/deal.II/include/fe/fe_system.h b/deal.II/deal.II/include/fe/fe_system.h index 2252f56991..f28bf4177f 100644 --- a/deal.II/deal.II/include/fe/fe_system.h +++ b/deal.II/deal.II/include/fe/fe_system.h @@ -194,13 +194,13 @@ class FESystem : public FiniteElement * of finite elements composed * into this structure. */ - virtual unsigned int n_base_elements() const; + virtual unsigned int n_base_elements () const; /** * How often is a composing element used. * */ - unsigned int element_multiplicity(unsigned int index) const; + unsigned int element_multiplicity (const unsigned int index) const; /** * Access to a composing element. @@ -217,7 +217,7 @@ class FESystem : public FiniteElement * by index. * */ - virtual const FiniteElement & base_element(unsigned int index) const; + virtual const FiniteElement & base_element(const unsigned int index) const; /** * Determine an estimate for the diff --git a/deal.II/deal.II/source/fe/fe.cc b/deal.II/deal.II/source/fe/fe.cc index c3877ab1f2..d7b070aa13 100644 --- a/deal.II/deal.II/source/fe/fe.cc +++ b/deal.II/deal.II/source/fe/fe.cc @@ -465,7 +465,7 @@ FiniteElement::memory_consumption () const template const FiniteElement& -FiniteElement::base_element(unsigned index) const +FiniteElement::base_element(const unsigned index) const { Assert (index==0, ExcIndexRange(index,0,1)); return *this; diff --git a/deal.II/deal.II/source/fe/fe_q.cc b/deal.II/deal.II/source/fe/fe_q.cc index f21d11d117..6146f39e3e 100644 --- a/deal.II/deal.II/source/fe/fe_q.cc +++ b/deal.II/deal.II/source/fe/fe_q.cc @@ -973,7 +973,7 @@ FE_Q::update_once (const UpdateFlags flags) const template UpdateFlags -FE_Q::update_each (UpdateFlags flags) const +FE_Q::update_each (const UpdateFlags flags) const { UpdateFlags out = update_default; -- 2.39.5