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

deal.II/deal.II/source/numerics/matrices.cc
deal.II/lac/include/lac/vector_memory.h

index 0f4d6dfa40d8a9dd6028a94448cf9fe5ee448957..f95a417258346645a891c82b640dd6102896d2d8 100644 (file)
@@ -342,7 +342,7 @@ MatrixCreator<dim>::create_boundary_mass_matrix (const Mapping<dim>        &mapp
                                                 const typename FunctionMap<dim>::type         &boundary_functions,
                                                 Vector<double>            &rhs_vector,
                                                 std::vector<unsigned int> &dof_to_boundary_mapping,
-                                                const Function<dim>       *a)
+                                                const Function<dim> * const a)
 {
   const unsigned int n_threads = multithread_info.n_default_threads;
   Threads::ThreadManager thread_manager;
@@ -695,7 +695,7 @@ void MatrixCreator<dim>::create_boundary_mass_matrix (const DoFHandler<dim>
                                                      const typename FunctionMap<dim>::type &rhs,
                                                      Vector<double>            &rhs_vector,
                                                      std::vector<unsigned int> &dof_to_boundary_mapping,
-                                                     const Function<dim>       *a)
+                                                     const Function<dim> * const a)
 {
   Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
   static const MappingQ1<dim> mapping;
index f425908033440a181d4fbd8ec2e7611198b7f28e..f86834987897d562f79c7b97dd5e67ec61b9c3f5 100644 (file)
@@ -95,7 +95,7 @@ class PrimitiveVectorMemory : public VectorMemory<Vector>
                                     /**
                                      * Return a vector to the global heap.
                                      */
-    virtual void free (const Vector* v)
+    virtual void free (const Vector * const v)
       {
        delete v;
       }
@@ -144,7 +144,7 @@ class GrowingVectorMemory : public VectorMemory<Vector>
                                      * Return a vector into the pool
                                      * for later use.
                                      */
-    virtual void free (const Vector*);
+    virtual void free (const Vector * const);
 
   private:
                                     /**

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.