]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
InVector for compute_mean_value should have been const
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Jan 2002 14:35:21 +0000 (14:35 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Jan 2002 14:35:21 +0000 (14:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@5395 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e8b9ad6d5365686503d50e06329fb240b93e8292..629b0d08df00af32c94cddc69734b7cd9a55c55d 100644 (file)
@@ -852,7 +852,7 @@ class VectorTools
     static double compute_mean_value (const Mapping<dim>    &mapping,
                                      const DoFHandler<dim> &dof,
                                      const Quadrature<dim> &quadrature,
-                                     InVector              &v,
+                                     const InVector        &v,
                                      const unsigned int     component);
     
                                     /**
@@ -863,7 +863,7 @@ class VectorTools
     template <int dim, class InVector>
     static double compute_mean_value (const DoFHandler<dim> &dof,
                                      const Quadrature<dim> &quadrature,
-                                     InVector              &v,
+                                     const InVector        &v,
                                      const unsigned int     component);
 
                                     /**
index ee4ae89d2d0df04c6baccfce170e5a85c3d96419..cf522ea2bb5bd82d096bb7beb1b323dfea9973ba 100644 (file)
@@ -1413,7 +1413,7 @@ double
 VectorTools::compute_mean_value (const Mapping<dim>    &mapping,
                                 const DoFHandler<dim> &dof,
                                 const Quadrature<dim> &quadrature,
-                                InVector              &v,
+                                const InVector        &v,
                                 const unsigned int     component)
 {
   Assert (component < dof.get_fe().n_components(),
@@ -1449,7 +1449,7 @@ template <int dim, class InVector>
 double
 VectorTools::compute_mean_value (const DoFHandler<dim> &dof,
                                 const Quadrature<dim> &quadrature,
-                                InVector              &v,
+                                const InVector        &v,
                                 const unsigned int     component)
 {
   Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
@@ -1709,48 +1709,48 @@ template
 double VectorTools::compute_mean_value (const Mapping<deal_II_dimension>&,
                                        const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       Vector<double>&,
+                                       const Vector<double>&,
                                        const unsigned int);
 template
 double VectorTools::compute_mean_value (const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       Vector<double>&,
+                                       const Vector<double>&,
                                        const unsigned int);
 
 template
 double VectorTools::compute_mean_value (const Mapping<deal_II_dimension>&,
                                        const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       BlockVector<double>&,
+                                       const BlockVector<double>&,
                                        const unsigned int);
 template
 double VectorTools::compute_mean_value (const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       BlockVector<double>&,
+                                       const BlockVector<double>&,
                                        const unsigned int);
 
 template
 double VectorTools::compute_mean_value (const Mapping<deal_II_dimension>&,
                                        const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       Vector<float>&,
+                                       const Vector<float>&,
                                        const unsigned int);
 template
 double VectorTools::compute_mean_value (const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       Vector<float>&,
+                                       const Vector<float>&,
                                        const unsigned int);
 
 template
 double VectorTools::compute_mean_value (const Mapping<deal_II_dimension>&,
                                        const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       BlockVector<float>&,
+                                       const BlockVector<float>&,
                                        const unsigned int);
 template
 double VectorTools::compute_mean_value (const DoFHandler<deal_II_dimension>&,
                                        const Quadrature<deal_II_dimension>&,
-                                       BlockVector<float>&,
+                                       const BlockVector<float>&,
                                        const unsigned int);
 
 

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.