From: guido Date: Fri, 18 Jan 2002 14:35:21 +0000 (+0000) Subject: InVector for compute_mean_value should have been const X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975f43d15f8b3e4ec2e0b4ef1b46c345b6388a38;p=dealii-svn.git InVector for compute_mean_value should have been const git-svn-id: https://svn.dealii.org/trunk@5395 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/numerics/vectors.h b/deal.II/deal.II/include/numerics/vectors.h index e8b9ad6d53..629b0d08df 100644 --- a/deal.II/deal.II/include/numerics/vectors.h +++ b/deal.II/deal.II/include/numerics/vectors.h @@ -852,7 +852,7 @@ class VectorTools static double compute_mean_value (const Mapping &mapping, const DoFHandler &dof, const Quadrature &quadrature, - InVector &v, + const InVector &v, const unsigned int component); /** @@ -863,7 +863,7 @@ class VectorTools template static double compute_mean_value (const DoFHandler &dof, const Quadrature &quadrature, - InVector &v, + const InVector &v, const unsigned int component); /** diff --git a/deal.II/deal.II/source/numerics/vectors.cc b/deal.II/deal.II/source/numerics/vectors.cc index ee4ae89d2d..cf522ea2bb 100644 --- a/deal.II/deal.II/source/numerics/vectors.cc +++ b/deal.II/deal.II/source/numerics/vectors.cc @@ -1413,7 +1413,7 @@ double VectorTools::compute_mean_value (const Mapping &mapping, const DoFHandler &dof, const Quadrature &quadrature, - InVector &v, + const InVector &v, const unsigned int component) { Assert (component < dof.get_fe().n_components(), @@ -1449,7 +1449,7 @@ template double VectorTools::compute_mean_value (const DoFHandler &dof, const Quadrature &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&, const DoFHandler&, const Quadrature&, - Vector&, + const Vector&, const unsigned int); template double VectorTools::compute_mean_value (const DoFHandler&, const Quadrature&, - Vector&, + const Vector&, const unsigned int); template double VectorTools::compute_mean_value (const Mapping&, const DoFHandler&, const Quadrature&, - BlockVector&, + const BlockVector&, const unsigned int); template double VectorTools::compute_mean_value (const DoFHandler&, const Quadrature&, - BlockVector&, + const BlockVector&, const unsigned int); template double VectorTools::compute_mean_value (const Mapping&, const DoFHandler&, const Quadrature&, - Vector&, + const Vector&, const unsigned int); template double VectorTools::compute_mean_value (const DoFHandler&, const Quadrature&, - Vector&, + const Vector&, const unsigned int); template double VectorTools::compute_mean_value (const Mapping&, const DoFHandler&, const Quadrature&, - BlockVector&, + const BlockVector&, const unsigned int); template double VectorTools::compute_mean_value (const DoFHandler&, const Quadrature&, - BlockVector&, + const BlockVector&, const unsigned int);