From: Wolfgang Bangerth Date: Thu, 17 May 2001 12:49:49 +0000 (+0000) Subject: Make variables const and thus Intel C++ compiler more happy. X-Git-Tag: v8.0.0~19154 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=423a2eab82e5e0e9663f5261c71835bcfb282d72;p=dealii.git Make variables const and thus Intel C++ compiler more happy. git-svn-id: https://svn.dealii.org/trunk@4637 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/numerics/matrices.h b/deal.II/deal.II/include/numerics/matrices.h index ef34ba6759..30b1d074c9 100644 --- a/deal.II/deal.II/include/numerics/matrices.h +++ b/deal.II/deal.II/include/numerics/matrices.h @@ -277,7 +277,7 @@ class MatrixCreator const typename FunctionMap::type &boundary_functions, Vector &rhs_vector, std::vector&dof_to_boundary_mapping, - const Function *a = 0); + const Function * const a = 0); /** * Calls the @@ -292,7 +292,7 @@ class MatrixCreator const typename FunctionMap::type &boundary_functions, Vector &rhs_vector, std::vector&dof_to_boundary_mapping, - const Function *a = 0); + const Function * const a = 0); /** * Assemble the Laplace @@ -311,7 +311,7 @@ class MatrixCreator const DoFHandler &dof, const Quadrature &q, SparseMatrix &matrix, - const Function *a = 0); + const Function * const a = 0); /** * Calls the @p{create_laplace_matrix} @@ -321,7 +321,7 @@ class MatrixCreator static void create_laplace_matrix (const DoFHandler &dof, const Quadrature &q, SparseMatrix &matrix, - const Function *a = 0); + const Function * const a = 0); /** * Generate Laplace matrix for a @@ -368,7 +368,7 @@ class MatrixCreator SparseMatrix &matrix, const Function &rhs, Vector &rhs_vector, - const Function *a = 0); + const Function * const a = 0); /** * Exception diff --git a/deal.II/lac/include/lac/precondition.h b/deal.II/lac/include/lac/precondition.h index 4c6e271e6a..a57c19ac6d 100644 --- a/deal.II/lac/include/lac/precondition.h +++ b/deal.II/lac/include/lac/precondition.h @@ -518,7 +518,8 @@ PreconditionIdentity::Tvmult (VECTOR& dst, const VECTOR& src) const template inline void -PreconditionRelaxation::initialize (const MATRIX& rA, double o) +PreconditionRelaxation::initialize (const MATRIX &rA, + const double o) { A = &rA; omega = o; @@ -597,8 +598,8 @@ PreconditionSSOR::Tvmult (VECTOR& dst, const VECTOR& src) const template -PreconditionUseMatrix::PreconditionUseMatrix(const MATRIX& M, - function_ptr method) +PreconditionUseMatrix::PreconditionUseMatrix(const MATRIX &M, + const function_ptr method) : matrix(M), precondition(method) {} diff --git a/deal.II/lac/include/lac/vector_memory.h b/deal.II/lac/include/lac/vector_memory.h index a70c7a7290..f425908033 100644 --- a/deal.II/lac/include/lac/vector_memory.h +++ b/deal.II/lac/include/lac/vector_memory.h @@ -55,7 +55,7 @@ class VectorMemory : public Subscriptor * Return a vector into the pool * for later use. */ - virtual void free(const Vector*) = 0; + virtual void free (const Vector * const) = 0; /** * No more available vectors. */