]> 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:54:42 +0000 (11:54 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 May 2001 11:54:42 +0000 (11:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@4629 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe.h
deal.II/deal.II/include/fe/fe_dgq.h
deal.II/deal.II/include/fe/fe_q.h
deal.II/deal.II/include/fe/fe_system.h
deal.II/deal.II/source/fe/fe.cc
deal.II/deal.II/source/fe/fe_q.cc

index 77545b80e8ab4e732b21e0eab46f7082c4bb328d..dd0a4d48bc1eb9e67e965587df2f69beba863228 100644 (file)
@@ -125,14 +125,14 @@ class FiniteElement : public FiniteElementBase<dim>
                                      * 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
index 86e8a5425f882e1720cc2045422779a592636d79..b83abf7608127b2ae6f5610e68e070194567b422 100644 (file)
@@ -227,12 +227,12 @@ class FE_DGQ : public FiniteElement<dim>
                                     /**
                                      * 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
index 67b096c783e54d49a70260b6149e26ff2149330d..a82b23f5dafe46893c47a7db9decce79478a264a 100644 (file)
@@ -539,13 +539,13 @@ class FE_Q : public FiniteElement<dim>
                                      * 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.
index 2252f569912b5d804b20f38e7bc2098bf9484c59..f28bf4177ff665245cdfd8f26dc75228780640ef 100644 (file)
@@ -194,13 +194,13 @@ class FESystem : public FiniteElement<dim>
                                      * 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<dim>
                                      * by index.
                                      *
                                      */
-    virtual const FiniteElement<dim> & base_element(unsigned int index) const;
+    virtual const FiniteElement<dim> & base_element(const unsigned int index) const;
 
                                     /**
                                      * Determine an estimate for the
index c3877ab1f28797760a7c4e164afc7a02a7860ac1..d7b070aa13043923035d9add3ff2d60cb1bdb00a 100644 (file)
@@ -465,7 +465,7 @@ FiniteElement<dim>::memory_consumption () const
 
 template <int dim>
 const FiniteElement<dim>&
-FiniteElement<dim>::base_element(unsigned index) const
+FiniteElement<dim>::base_element(const unsigned index) const
 {
   Assert (index==0, ExcIndexRange(index,0,1));
   return *this;
index f21d11d117f443b5d448b5dd3a1b462cb2e73cd2..6146f39e3ef02c8094f34c150ecda72927a26db4 100644 (file)
@@ -973,7 +973,7 @@ FE_Q<dim>::update_once (const UpdateFlags flags) const
 
 template <int dim>
 UpdateFlags
-FE_Q<dim>::update_each (UpdateFlags flags) const
+FE_Q<dim>::update_each (const UpdateFlags flags) const
 {
   UpdateFlags out = update_default;
 

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.