From 561cffcd70b29c54117a5e5699a50c6762904ce4 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 18 May 2001 09:06:44 +0000 Subject: [PATCH] Make variables const and thus Intel C++ compiler more happy. git-svn-id: https://svn.dealii.org/trunk@4670 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/numerics/error_estimator.h | 7 ++++--- deal.II/deal.II/source/numerics/error_estimator.cc | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/include/numerics/error_estimator.h b/deal.II/deal.II/include/numerics/error_estimator.h index 7ab4fef26d..73e2375eab 100644 --- a/deal.II/deal.II/include/numerics/error_estimator.h +++ b/deal.II/deal.II/include/numerics/error_estimator.h @@ -278,7 +278,8 @@ class KellyErrorEstimator Vector &error, const std::vector &component_mask = std::vector(), const Function *coefficients = 0, - unsigned int n_threads = multithread_info.n_default_threads); + const unsigned int n_threads = multithread_info.n_default_threads); + /** * Same function as above, but * accepts more than one solution @@ -314,7 +315,7 @@ class KellyErrorEstimator std::vector*> &errors, const std::vector &component_mask = std::vector(), const Function *coefficients = 0, - unsigned int n_threads = multithread_info.n_default_threads); + const unsigned int n_threads = multithread_info.n_default_threads); /** * Calls the @p{estimate} @@ -328,7 +329,7 @@ class KellyErrorEstimator std::vector*> &errors, const std::vector &component_mask = std::vector(), const Function *coefficients = 0, - unsigned int n_threads = multithread_info.n_default_threads); + const unsigned int n_threads = multithread_info.n_default_threads); /** diff --git a/deal.II/deal.II/source/numerics/error_estimator.cc b/deal.II/deal.II/source/numerics/error_estimator.cc index bd58662875..9f17f6a727 100644 --- a/deal.II/deal.II/source/numerics/error_estimator.cc +++ b/deal.II/deal.II/source/numerics/error_estimator.cc @@ -65,6 +65,8 @@ KellyErrorEstimator<1>::Data::Data(const Mapping<1> &, quadrature(* static_cast *> (0)), neumann_bc(* static_cast ::type *> (0)), solutions(* static_cast *> *> (0)), + n_threads (0), + n_solution_vectors (0), face_integrals (* static_cast (0)) { Assert (false, ExcInternalError()); @@ -157,7 +159,7 @@ void KellyErrorEstimator::estimate (const Mapping &mapping, Vector &error, const std::vector &component_mask, const Function *coefficients, - unsigned int n_threads) + const unsigned int n_threads) { // just pass on to the other function const std::vector*> solutions (1, &solution); @@ -175,7 +177,7 @@ void KellyErrorEstimator::estimate (const DoFHandler &dof_handler, Vector &error, const std::vector &component_mask, const Function *coefficients, - unsigned int n_threads) + const unsigned int n_threads) { Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping")); static const MappingQ1 mapping; @@ -679,7 +681,7 @@ void KellyErrorEstimator::estimate (const DoFHandler &do std::vector*> &errors, const std::vector &component_mask, const Function *coefficients, - unsigned int n_threads) + const unsigned int n_threads) { Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping")); static const MappingQ1 mapping; -- 2.39.5