virtual void value_list (const vector<Point<dim> > &points,
vector<Tensor<rank_,dim> > &values) const;
- /**
- * Return one component of the value.
- */
- virtual double operator() (TensorIndex<rank_> i, const Point<dim>& p) const;
+// /**
+// * Return one component of the value.
+// */
+// virtual double operator() (TensorIndex<rank_> i, const Point<dim>& p) const;
/**
+// template <int rank_, int dim>
+// double
+// TensorFunction<rank_, dim>::operator () (TensorIndex<rank_> i,
+// const Point<dim> &) const
+// {
+// int k=i(0);
+// k++;
+
+// Assert (false, ExcPureFunctionCalled());
+// return 0;
+// };
+
+
template <int rank_, int dim>
-double
-TensorFunction<rank_, dim>::operator () (TensorIndex<rank_> i,
- const Point<dim> &) const
+Tensor<rank_,dim>
+TensorFunction<rank_, dim>::operator() (const Point<dim> &) const
{
- int k=i(0);
- k++;
-
Assert (false, ExcPureFunctionCalled());
- return 0;
+ return Tensor<rank_,dim>();
};
-
template <int rank_, int dim>
void
TensorFunction<rank_, dim>::value_list (const vector<Point<dim> > &points,