From 975f43d15f8b3e4ec2e0b4ef1b46c345b6388a38 Mon Sep 17 00:00:00 2001 From: guido Date: Fri, 18 Jan 2002 14:35:21 +0000 Subject: [PATCH] InVector for compute_mean_value should have been const git-svn-id: https://svn.dealii.org/trunk@5395 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/numerics/vectors.h | 4 ++-- deal.II/deal.II/source/numerics/vectors.cc | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) 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); -- 2.39.5