From 03ea75018bd94a83b7a2ea345cbd6af2a742c8cc Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 27 Aug 2018 00:21:31 -0400 Subject: [PATCH] step-37: remove the value_list overload. This is never used. --- examples/step-37/step-37.cc | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index 568249a4a8..6d20904472 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -96,10 +96,6 @@ namespace Step37 template number value(const Point &p, const unsigned int component = 0) const; - - virtual void value_list(const std::vector> &points, - std::vector & values, - const unsigned int component = 0) const override; }; @@ -121,10 +117,9 @@ namespace Step37 // make use of vectorized operations. // // In the function implementation, we assume that the number type overloads - // basic arithmetic operations, so we just write the code as usual. The - // standard functions @p value and value_list that are virtual functions - // contained in the base class are then computed from the templated function - // with double type, in order to avoid duplicating code. + // basic arithmetic operations, so we just write the code as usual. The base + // class function @p value is then computed from the templated function with + // double type, in order to avoid duplicating code. template template number Coefficient::value(const Point &p, @@ -143,23 +138,6 @@ namespace Step37 } - - template - void Coefficient::value_list(const std::vector> &points, - std::vector & values, - const unsigned int component) const - { - Assert(values.size() == points.size(), - ExcDimensionMismatch(values.size(), points.size())); - Assert(component == 0, ExcIndexRange(component, 0, 1)); - - const unsigned int n_points = points.size(); - for (unsigned int i = 0; i < n_points; ++i) - values[i] = value(points[i], component); - } - - - // @sect3{Matrix-free implementation} // The following class, called LaplaceOperator, implements the -- 2.39.5