]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-37: remove the value_list overload.
authorDavid Wells <drwells@email.unc.edu>
Mon, 27 Aug 2018 04:21:31 +0000 (00:21 -0400)
committerDavid Wells <drwells@email.unc.edu>
Tue, 28 Aug 2018 13:44:08 +0000 (09:44 -0400)
This is never used.

examples/step-37/step-37.cc

index 568249a4a88684f24d9e65634881c08a71a5fc3b..6d20904472bceef8487b1e93b7a711f57aa8f94b 100644 (file)
@@ -96,10 +96,6 @@ namespace Step37
     template <typename number>
     number value(const Point<dim, number> &p,
                  const unsigned int        component = 0) const;
-
-    virtual void value_list(const std::vector<Point<dim>> &points,
-                            std::vector<double> &          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 <int dim>
   template <typename number>
   number Coefficient<dim>::value(const Point<dim, number> &p,
@@ -143,23 +138,6 @@ namespace Step37
   }
 
 
-
-  template <int dim>
-  void Coefficient<dim>::value_list(const std::vector<Point<dim>> &points,
-                                    std::vector<double> &          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<double>(points[i], component);
-  }
-
-
-
   // @sect3{Matrix-free implementation}
 
   // The following class, called <code>LaplaceOperator</code>, implements the

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.