From: Wolfgang Bangerth Date: Fri, 9 Aug 2002 09:16:43 +0000 (+0000) Subject: Work around a bug in icc5/6. X-Git-Tag: v8.0.0~17656 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7a7b64c64a02066e57a56942c4e9db6e7edf71b;p=dealii.git Work around a bug in icc5/6. git-svn-id: https://svn.dealii.org/trunk@6322 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;