From 7919a3a9d41b3ff349f13f03b5500da0fa134922 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 25 Nov 2008 22:07:09 +0000 Subject: [PATCH] Add a missing assertion. git-svn-id: https://svn.dealii.org/trunk@17740 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/numerics/vectors.templates.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deal.II/deal.II/include/numerics/vectors.templates.h b/deal.II/deal.II/include/numerics/vectors.templates.h index 88e3bdb539..fa07a7e949 100644 --- a/deal.II/deal.II/include/numerics/vectors.templates.h +++ b/deal.II/deal.II/include/numerics/vectors.templates.h @@ -3257,6 +3257,8 @@ VectorTools::compute_mean_value (const Mapping &mapping, const InVector &v, const unsigned int component) { + Assert (v.size() == dof.n_dofs(), + ExcDimensionMismatch (v.size(), dof.n_dofs())); Assert (component < dof.get_fe().n_components(), ExcIndexRange(component, 0, dof.get_fe().n_components())); -- 2.39.5