From 6c319603049f76f4c82d58eec9d7603751acf5a2 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 9 Aug 2002 09:16:43 +0000 Subject: [PATCH] Work around a bug in icc5/6. git-svn-id: https://svn.dealii.org/trunk@6322 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/vectors.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/numerics/vectors.cc b/deal.II/deal.II/source/numerics/vectors.cc index 0166d6b940..ffcc79d50d 100644 --- a/deal.II/deal.II/source/numerics/vectors.cc +++ b/deal.II/deal.II/source/numerics/vectors.cc @@ -1059,8 +1059,17 @@ VectorTools::integrate_difference (const Mapping &mapping, const Quadrature &q, const NormType &norm, const Function *weight, - double exponent) + const double exponent_1) { + // we mark the "exponent" parameter + // to this function "const" since + // it is strictly incoming, but we + // need to set it to something + // different later on, if + // necessary, so have a read-write + // version of it: + double exponent = exponent_1; + const unsigned int n_q_points = q.n_quadrature_points; const FiniteElement &fe = dof.get_fe(); const unsigned int n_components = fe.n_components(); @@ -1338,7 +1347,7 @@ VectorTools::integrate_difference (const DoFHandler &dof, const Quadrature &q, const NormType &norm, const Function *weight, - double exponent) + const double exponent) { Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping")); static const MappingQ1 mapping; -- 2.39.5