]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Also in another place.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2005 20:17:49 +0000 (20:17 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2005 20:17:49 +0000 (20:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@11011 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function.cc

index 0a171bc3317ba251c777895aa7df72e0fd3bbf84..deb9f35aca15ee628bb596b549904a6ef76c8ee2 100644 (file)
@@ -363,8 +363,10 @@ void ConstantFunction<dim>::vector_value (const Point<dim> &,
 template <int dim>
 void ConstantFunction<dim>::value_list (const std::vector<Point<dim> > &points,
                                        std::vector<double>            &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()));
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.