]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a bug in icc5/6.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Aug 2002 09:16:43 +0000 (09:16 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Aug 2002 09:16:43 +0000 (09:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@6322 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/vectors.cc

index 0166d6b940b7e93ec70c8c0d5d70fc68f4b1e65f..ffcc79d50d2d9493a5f10737588e6d68e8a3b8d8 100644 (file)
@@ -1059,8 +1059,17 @@ VectorTools::integrate_difference (const Mapping<dim>    &mapping,
                                   const Quadrature<dim> &q,
                                   const NormType        &norm,
                                   const Function<dim>   *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<dim> &fe           = dof.get_fe();
   const unsigned int        n_components = fe.n_components();
@@ -1338,7 +1347,7 @@ VectorTools::integrate_difference (const DoFHandler<dim>    &dof,
                                   const Quadrature<dim>    &q,
                                   const NormType           &norm,
                                   const Function<dim>      *weight,
-                                  double exponent)
+                                  const double              exponent)
 {
   Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
   static const MappingQ1<dim> mapping;

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.