From: wolf Date: Thu, 30 Jun 2005 20:17:49 +0000 (+0000) Subject: Also in another place. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c769e2b8fcf8cf099d2125825d1d163cda87d1d9;p=dealii-svn.git Also in another place. git-svn-id: https://svn.dealii.org/trunk@11011 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/function.cc b/deal.II/base/source/function.cc index 0a171bc331..deb9f35aca 100644 --- a/deal.II/base/source/function.cc +++ b/deal.II/base/source/function.cc @@ -363,8 +363,10 @@ void ConstantFunction::vector_value (const Point &, template void ConstantFunction::value_list (const std::vector > &points, std::vector &values, - const unsigned int /*component*/) const + const unsigned int component) const { + Assert (component < this->n_components, + ExcIndexRange (component, 0, this->n_components)); Assert (values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size()));