From: wolf Date: Thu, 30 Jun 2005 20:17:01 +0000 (+0000) Subject: Check the component of a constant function. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd54089125937e694dfe16ae6b6c6e815084b0b;p=dealii-svn.git Check the component of a constant function. git-svn-id: https://svn.dealii.org/trunk@11010 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/function.cc b/deal.II/base/source/function.cc index 611fc3945c..0a171bc331 100644 --- a/deal.II/base/source/function.cc +++ b/deal.II/base/source/function.cc @@ -339,8 +339,10 @@ ConstantFunction::~ConstantFunction () {} template double ConstantFunction::value (const Point &, - const unsigned int) const + const unsigned int component) const { + Assert (component < this->n_components, + ExcIndexRange (component, 0, this->n_components)); return function_value; }